Fix source output 'list out of range'
This commit is contained in:
@@ -212,7 +212,9 @@ def main(number):
|
||||
}
|
||||
js = json.dumps(dic, ensure_ascii=False, sort_keys=True, indent=4,separators=(',', ':'), ) # .encode('UTF-8')
|
||||
return js
|
||||
except:
|
||||
except Exception as e:
|
||||
if config.Config().debug():
|
||||
print(e)
|
||||
data = {
|
||||
"title": "",
|
||||
}
|
||||
|
||||
@@ -120,7 +120,9 @@ def main(number):
|
||||
'source': 'avsox.py',
|
||||
'series': getSeries(info),
|
||||
}
|
||||
except:
|
||||
except Exception as e:
|
||||
if config.Config().debug():
|
||||
print(e)
|
||||
dic = {"title": ""}
|
||||
js = json.dumps(dic, ensure_ascii=False, sort_keys=True, indent=4, separators=(',', ':'), ) # .encode('UTF-8')
|
||||
return js
|
||||
|
||||
@@ -18,7 +18,9 @@ def main(number: str) -> json:
|
||||
|
||||
if not soup.select_one("#moviepages > div > div:nth-child(1) > div.movie-info.section"):
|
||||
raise ValueError("page info not found")
|
||||
except:
|
||||
except Exception as e:
|
||||
if config.Config().debug():
|
||||
print(e)
|
||||
dic = {"title": ""}
|
||||
return json.dumps(dic, ensure_ascii=False, sort_keys=True, indent=4, separators=(',', ':'))
|
||||
dic = {
|
||||
|
||||
@@ -152,7 +152,9 @@ def main(number):
|
||||
}
|
||||
js = json.dumps(dic, ensure_ascii=False, sort_keys=True, indent=4, separators=(',', ':'), ) # .encode('UTF-8')
|
||||
return js
|
||||
except:
|
||||
except Exception as e:
|
||||
if config.Config().debug():
|
||||
print(e)
|
||||
data = {
|
||||
"title": "",
|
||||
}
|
||||
|
||||
@@ -112,7 +112,8 @@ def main(number):
|
||||
'series': '',
|
||||
}
|
||||
except Exception as e:
|
||||
print(e)
|
||||
if ADC_function.config.Config().debug():
|
||||
print(e)
|
||||
dic = {"title": ""}
|
||||
js = json.dumps(dic, ensure_ascii=False, sort_keys=True, indent=4, separators=(',', ':'), ) # .encode('UTF-8')
|
||||
return js
|
||||
|
||||
@@ -178,7 +178,9 @@ def main(number):
|
||||
return js
|
||||
except:
|
||||
return main_uncensored(number)
|
||||
except:
|
||||
except Exception as e:
|
||||
if config.Config().debug():
|
||||
print(e)
|
||||
data = {
|
||||
"title": "",
|
||||
}
|
||||
|
||||
@@ -293,7 +293,9 @@ def main(number):
|
||||
'series': getSeries(detail_page),
|
||||
|
||||
}
|
||||
except Exception:
|
||||
except Exception as e:
|
||||
if config.Config().debug():
|
||||
print(e)
|
||||
dic = {"title": ""}
|
||||
js = json.dumps(dic, ensure_ascii=False, sort_keys=True, indent=4, separators=(',', ':'), ) # .encode('UTF-8')
|
||||
return js
|
||||
|
||||
@@ -136,7 +136,9 @@ def main(number2):
|
||||
'source': 'mgstage.py',
|
||||
'series': getSeries(a),
|
||||
}
|
||||
except:
|
||||
except Exception as e:
|
||||
if config.Config().debug():
|
||||
print(e)
|
||||
dic = {"title": ""}
|
||||
|
||||
js = json.dumps(dic, ensure_ascii=False, sort_keys=True, indent=4, separators=(',', ':'), ) # .encode('UTF-8')
|
||||
|
||||
@@ -199,7 +199,8 @@ def main(number):
|
||||
'series': getSeries(detail_page),
|
||||
}
|
||||
except Exception as e:
|
||||
# print(e)
|
||||
if config.Config().debug():
|
||||
print(e)
|
||||
dic = {"title": ""}
|
||||
|
||||
js = json.dumps(dic, ensure_ascii=False, sort_keys=True, indent=4, separators=(',', ':'), ) # .encode('UTF-8')
|
||||
|
||||
Reference in New Issue
Block a user