Add: Actions When Upload Finished
This commit is contained in:
parent
84ca4d0a62
commit
77d7f35d25
11
bilibili.py
11
bilibili.py
@ -2,6 +2,7 @@
|
||||
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
from datetime import datetime
|
||||
|
||||
import rsa
|
||||
@ -11,6 +12,8 @@ import hashlib
|
||||
import requests
|
||||
from urllib import parse
|
||||
|
||||
from config import config
|
||||
|
||||
|
||||
class VideoPart:
|
||||
def __init__(self, path, title='', desc=''):
|
||||
@ -322,8 +325,12 @@ class Bilibili:
|
||||
"videos": self.videos}
|
||||
)
|
||||
print(r.text)
|
||||
for _p in self.files:
|
||||
shutil.move(_p.path, "/tmp/oss/")
|
||||
if config["mv"]:
|
||||
for _p in self.files:
|
||||
shutil.move(_p.path, config["mtd"])
|
||||
elif config["del"]:
|
||||
for _p in self.files:
|
||||
os.remove(_p.path)
|
||||
|
||||
def appendUpload(self,
|
||||
aid,
|
||||
|
Reference in New Issue
Block a user