Skip to content

Commit

Permalink
Merge pull request NAStool#3110 from jxxghp/dev
Browse files Browse the repository at this point in the history
fix #3107
  • Loading branch information
jxxghp authored Jan 23, 2023
2 parents 8d5b641 + f88a06a commit 0e7a704
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/conf/siteconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class SiteConf:
'//button[@type="submit"]',
'//button[@lay-filter="login"]',
'//button[@lay-filter="formLogin"]',
'//input[@type="button"][@value="登录"]'
],
"error": [
"//table[@class='main']//td[@class='text']/text()"
Expand Down
2 changes: 2 additions & 0 deletions app/sites/sitecookie.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ def __get_captcha_url(siteurl, imageurl):
"""
if not siteurl or not imageurl:
return ""
if imageurl.startswith("/"):
imageurl = imageurl[1:]
return "%s/%s" % (StringUtils.get_base_url(siteurl), imageurl)

def update_sites_cookie_ua(self,
Expand Down
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
RMT_MEDIAEXT = ['.mp4', '.mkv', '.ts', '.iso',
'.rmvb', '.avi', '.mov', '.mpeg',
'.mpg', '.wmv', '.3gp', '.asf',
'.m4v', '.flv', '.m2ts']
'.m4v', '.flv', '.m2ts', '.strm']
# 支持的字幕文件后缀格式
RMT_SUBEXT = ['.srt', '.ass', '.ssa']
# 电视剧动漫的分类genre_ids
Expand Down

0 comments on commit 0e7a704

Please sign in to comment.