Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
79679adbac | ||
|
|
637ae06a14 | ||
|
|
917614975e | ||
|
|
e3d9955e5b | ||
|
|
69fa8d3f05 |
@@ -21,7 +21,8 @@ def movie_lists():
|
|||||||
total = a2+b2+c2+d2+e2+f2+g2
|
total = a2+b2+c2+d2+e2+f2+g2
|
||||||
return total
|
return total
|
||||||
|
|
||||||
def lists_from_test(custom_nuber):
|
def lists_from_test(custom_nuber): #电影列表
|
||||||
|
|
||||||
a=[]
|
a=[]
|
||||||
a.append(custom_nuber)
|
a.append(custom_nuber)
|
||||||
return a
|
return a
|
||||||
@@ -35,11 +36,25 @@ def CEF(path):
|
|||||||
except:
|
except:
|
||||||
a=''
|
a=''
|
||||||
|
|
||||||
|
def rreplace(self, old, new, *max):
|
||||||
|
#从右开始替换文件名中内容,源字符串,将被替换的子字符串, 新字符串,用于替换old子字符串,可选字符串, 替换不超过 max 次
|
||||||
|
count = len(self)
|
||||||
|
if max and str(max[0]).isdigit():
|
||||||
|
count = max[0]
|
||||||
|
return new.join(self.rsplit(old, count))
|
||||||
|
|
||||||
if __name__ =='__main__':
|
if __name__ =='__main__':
|
||||||
os.chdir(os.getcwd())
|
os.chdir(os.getcwd())
|
||||||
for i in movie_lists():
|
for i in movie_lists(): #遍历电影列表 交给core处理
|
||||||
os.system('python core.py' + ' "' + i + '"')
|
if '_' in i:
|
||||||
|
os.rename(i, rreplace(i,'_','-',1))
|
||||||
|
i = rreplace(i,'_','-',1)
|
||||||
|
os.system('python core.py' + ' "' + i + '"') #选择从py文件启动 (用于源码py)
|
||||||
|
#os.system('core.exe' + ' "' + i + '"') #选择从exe文件启动(用于EXE版程序)
|
||||||
|
print("[*]=====================================")
|
||||||
|
|
||||||
print("[!]Cleaning empty folders")
|
print("[!]Cleaning empty folders")
|
||||||
CEF('JAV_output')
|
CEF('JAV_output')
|
||||||
print("[+]All finished!!!")
|
print("[+]All finished!!!")
|
||||||
time.sleep(3)
|
time.sleep(3)
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
为此,综合上述软件特点,我写出了本软件,为了方便的管理本地AV,和更好的手冲体验。没女朋友怎么办ʅ(‾◡◝)ʃ
|
为此,综合上述软件特点,我写出了本软件,为了方便的管理本地AV,和更好的手冲体验。没女朋友怎么办ʅ(‾◡◝)ʃ
|
||||||
|
|
||||||
**预计本周末适配DS Video,暂时只支持Kodi**
|
**预计本周末适配DS Video,暂时只支持Kodi,EMBY**
|
||||||
|
|
||||||
**tg官方电报群:https://t.me/AV_Data_Capture_Official**
|
**tg官方电报群:https://t.me/AV_Data_Capture_Official**
|
||||||
|
|
||||||
@@ -47,7 +47,11 @@ pip install pillow
|
|||||||
```
|
```
|
||||||
COSQ-004.mp4
|
COSQ-004.mp4
|
||||||
```
|
```
|
||||||
文件名中间要有减号"-",没有多余的内容只有番号为最佳,可以让软件更好获取元数据
|
或者
|
||||||
|
```
|
||||||
|
COSQ_004.mp4
|
||||||
|
```
|
||||||
|
文件名中间要有下划线或者减号"_","-",没有多余的内容只有番号为最佳,可以让软件更好获取元数据
|
||||||
对于多影片重命名,可以用ReNamer来批量重命名
|
对于多影片重命名,可以用ReNamer来批量重命名
|
||||||
软件官网:http://www.den4b.com/products/renamer
|
软件官网:http://www.den4b.com/products/renamer
|
||||||
|
|
||||||
|
|||||||
6
core.py
6
core.py
@@ -73,10 +73,8 @@ def DownloadFileWithFilename(url,filename,path): #path = examle:photo , video.in
|
|||||||
with open(str(path) + "/"+str(filename), "wb") as code:
|
with open(str(path) + "/"+str(filename), "wb") as code:
|
||||||
code.write(r.content)
|
code.write(r.content)
|
||||||
except IOError as e:
|
except IOError as e:
|
||||||
print("[-]Download Failed1!")
|
print("[-]Movie not found in All website!")
|
||||||
print("[-]Error:"+str(e))
|
#print("[*]=====================================")
|
||||||
print("[-]Movie not found in Javbus.com!")
|
|
||||||
print("[*]=====================================")
|
|
||||||
return "failed"
|
return "failed"
|
||||||
except Exception as e1:
|
except Exception as e1:
|
||||||
print(e1)
|
print(e1)
|
||||||
|
|||||||
Reference in New Issue
Block a user