Skip to content

Commit e1f270d

Browse files
committed
pylint
1 parent f5d3409 commit e1f270d

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
with:
99
python-version: '3.10'
1010
- run: pip install -U pip wheel
11-
- run: cat requirements.txt | xargs -n 1 pip install || exit 0
11+
# - run: cat requirements.txt | xargs -n 1 pip install || exit 0
1212
# by gemini
1313
- name: Install Requirements with Compatibility Fallback
1414
run: |
@@ -53,4 +53,5 @@ jobs:
5353
5454
echo "::endgroup::"
5555
done < "$REQUIREMENTS_FILE"
56+
- run: pip install .
5657
- run: python cute.py test

comiccrawler/mods/pixiv.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from urllib.parse import urljoin, urlencode, urlparse, parse_qs
1515
from zipfile import ZipFile
1616

17-
from ..core import Episode, grabhtml
17+
from ..core import Episode
1818
from ..error import PauseDownloadError, is_http, SkipEpisodeError, SkipPageError
1919
from ..safeprint import print
2020

@@ -25,13 +25,6 @@
2525
"cookie_PHPSESSID": "請輸入Cookie中的PHPSESSID"
2626
}
2727

28-
def get_title_from_init_data(html, url):
29-
init_data = get_init_data(html)
30-
user = next(iter(init_data["preload"]["user"].values()))
31-
tag = get_tag_from_url(url)
32-
tag = " ({})".format(tag) if tag else ""
33-
return "{} - {}{}".format(user["userId"], user["name"], tag)
34-
3528
def is_search_page(url):
3629
return re.match("https://www\.pixiv\.net/tags/", url)
3730

0 commit comments

Comments
 (0)