Skip to content

Commit 6f9f046

Browse files
authored
Merge pull request #665 from EstrellaXD/3.1-dev
3.1.12
2 parents 5efb9a3 + df02926 commit 6f9f046

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

backend/src/module/downloader/client/qb_downloader.py

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ def add_torrents(self, torrent_urls, torrent_files, save_path, category):
9090
save_path=save_path,
9191
category=category,
9292
use_auto_torrent_management=False,
93+
content_layout="NoSubFolder"
9394
)
9495
return resp == "Ok."
9596

backend/src/module/parser/analyser/mikan_parser.py

+6
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,14 @@ def mikan_parser(homepage: str):
1919
official_title = re.sub(r"第.*季", "", official_title).strip()
2020
if poster_div:
2121
poster_path = poster_div.split("url('")[1].split("')")[0]
22+
poster_path = poster_path.split("?")[0]
2223
img = req.get_content(f"https://{root_path}{poster_path}")
2324
suffix = poster_path.split(".")[-1]
2425
poster_link = save_image(img, suffix)
2526
return poster_link, official_title
2627
return "", ""
28+
29+
30+
if __name__ == '__main__':
31+
homepage = "https://mikanani.me/Home/Episode/c89b3c6f0c1c0567a618f5288b853823c87a9862"
32+
print(mikan_parser(homepage))

webui/src/pages/index/downloader.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ const isNull = computed(() => {
1414
1515
const url = computed(() => {
1616
const downloader = config.value.downloader;
17+
const host = downloader.host.replace(/http(s?)\:\/\//, '');
1718
const protocol = downloader.ssl ? 'https' : 'http';
1819
19-
return `${protocol}://${downloader.host}`;
20+
return `${protocol}://${host}`;
2021
});
2122
</script>
2223

0 commit comments

Comments
 (0)