fix minor douban tv parser error
switch pg package to binary for faster deployment sync minor local changes
This commit is contained in:
parent
3e454c74ab
commit
51538db80f
3 changed files with 6 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,3 +1,5 @@
|
|||
.DS_Store
|
||||
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
|
|
|
@ -497,7 +497,7 @@ class DoubanMovieScraper(DoubanScrapperMixin, AbstractScraper):
|
|||
|
||||
episodes_elem = content.xpath(
|
||||
"//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(
|
||||
"//div[@id='info']//span[text()='单集片长:']/following-sibling::text()[1]")
|
||||
|
|
|
@ -9,11 +9,13 @@ django-simple-history
|
|||
django-hijack
|
||||
django-user-messages
|
||||
django-slack
|
||||
#django-ninja
|
||||
#django-polymorphic
|
||||
meilisearch
|
||||
easy-thumbnails
|
||||
lxml
|
||||
openpyxl
|
||||
psycopg2
|
||||
psycopg2-binary
|
||||
requests
|
||||
filetype
|
||||
setproctitle
|
||||
|
|
Loading…
Add table
Reference in a new issue