fix scraper
This commit is contained in:
parent
fb6c3a9f36
commit
f6468ad327
@ -1,4 +1,3 @@
|
|||||||
import time
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Union
|
from typing import Union
|
||||||
from xml.dom import minidom
|
from xml.dom import minidom
|
||||||
@ -31,6 +30,9 @@ class DoubanScraper:
|
|||||||
:param force_img: 强制生成图片
|
:param force_img: 强制生成图片
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
if not mediainfo or not file_path:
|
||||||
|
return
|
||||||
|
|
||||||
self._transfer_type = transfer_type
|
self._transfer_type = transfer_type
|
||||||
self._force_nfo = force_nfo
|
self._force_nfo = force_nfo
|
||||||
self._force_img = force_img
|
self._force_img = force_img
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import time
|
|
||||||
import traceback
|
import traceback
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Union
|
from typing import Union
|
||||||
@ -37,6 +36,9 @@ class TmdbScraper:
|
|||||||
:param force_img: 是否强制生成图片
|
:param force_img: 是否强制生成图片
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
if not mediainfo or not file_path:
|
||||||
|
return
|
||||||
|
|
||||||
self._transfer_type = transfer_type
|
self._transfer_type = transfer_type
|
||||||
self._force_nfo = force_nfo
|
self._force_nfo = force_nfo
|
||||||
self._force_img = force_img
|
self._force_img = force_img
|
||||||
|
Loading…
x
Reference in New Issue
Block a user