fix minor douban tv parser error

switch pg package to binary for faster deployment

sync minor local changes
This commit is contained in:
Your Name 2022-12-03 13:17:29 -05:00
parent 3e454c74ab
commit 51538db80f
3 changed files with 6 additions and 2 deletions

2
.gitignore vendored
View file

@ -1,3 +1,5 @@
.DS_Store
# Byte-compiled / optimized / DLL files # Byte-compiled / optimized / DLL files
__pycache__/ __pycache__/
*.py[cod] *.py[cod]

View file

@ -497,7 +497,7 @@ class DoubanMovieScraper(DoubanScrapperMixin, AbstractScraper):
episodes_elem = content.xpath( episodes_elem = content.xpath(
"//div[@id='info']//span[text()='集数:']/following-sibling::text()[1]") "//div[@id='info']//span[text()='集数:']/following-sibling::text()[1]")
episodes = int(episodes_elem[0].strip()) if episodes_elem and episodes_elem[0].isdigit() else None episodes = int(episodes_elem[0].strip()) if episodes_elem and episodes_elem[0].strip().isdigit() else None
single_episode_length_elem = content.xpath( single_episode_length_elem = content.xpath(
"//div[@id='info']//span[text()='单集片长:']/following-sibling::text()[1]") "//div[@id='info']//span[text()='单集片长:']/following-sibling::text()[1]")

View file

@ -9,11 +9,13 @@ django-simple-history
django-hijack django-hijack
django-user-messages django-user-messages
django-slack django-slack
#django-ninja
#django-polymorphic
meilisearch meilisearch
easy-thumbnails easy-thumbnails
lxml lxml
openpyxl openpyxl
psycopg2 psycopg2-binary
requests requests
filetype filetype
setproctitle setproctitle