Skip to content

Commit

Permalink
Merge pull request EstrellaXD#665 from EstrellaXD/3.1-dev
Browse files Browse the repository at this point in the history
3.1.12
  • Loading branch information
EstrellaXD authored Jan 9, 2024
2 parents 5efb9a3 + df02926 commit 6f9f046
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions backend/src/module/downloader/client/qb_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def add_torrents(self, torrent_urls, torrent_files, save_path, category):
save_path=save_path,
category=category,
use_auto_torrent_management=False,
content_layout="NoSubFolder"
)
return resp == "Ok."

Expand Down
6 changes: 6 additions & 0 deletions backend/src/module/parser/analyser/mikan_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,14 @@ def mikan_parser(homepage: str):
official_title = re.sub(r"第.*季", "", official_title).strip()
if poster_div:
poster_path = poster_div.split("url('")[1].split("')")[0]
poster_path = poster_path.split("?")[0]
img = req.get_content(f"https://{root_path}{poster_path}")
suffix = poster_path.split(".")[-1]
poster_link = save_image(img, suffix)
return poster_link, official_title
return "", ""


if __name__ == '__main__':
homepage = "https://mikanani.me/Home/Episode/c89b3c6f0c1c0567a618f5288b853823c87a9862"
print(mikan_parser(homepage))
3 changes: 2 additions & 1 deletion webui/src/pages/index/downloader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ const isNull = computed(() => {
const url = computed(() => {
const downloader = config.value.downloader;
const host = downloader.host.replace(/http(s?)\:\/\//, '');
const protocol = downloader.ssl ? 'https' : 'http';
return `${protocol}://${downloader.host}`;
return `${protocol}://${host}`;
});
</script>

Expand Down

0 comments on commit 6f9f046

Please sign in to comment.