Fix 'local variable 'url_json' referenced before assignment'
This commit is contained in:
@@ -78,11 +78,10 @@ def getTrailer(htmlcode):
|
||||
video_url = video[0].replace('\'', '')
|
||||
video_url = 'https://adult.contents.fc2.com/api/v2/videos/1603395/sample?key=' + video_url
|
||||
url_json = eval(ADC_function.get_html(video_url))['path'].replace('\\', '')
|
||||
return url_json
|
||||
else:
|
||||
video_url = ''
|
||||
|
||||
return url_json
|
||||
|
||||
def main(number):
|
||||
try:
|
||||
number = number.replace('FC2-', '').replace('fc2-', '')
|
||||
|
||||
Reference in New Issue
Block a user