warp-beacon 2.3.40__tar.gz → 2.3.41__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {warp_beacon-2.3.40/warp_beacon.egg-info → warp_beacon-2.3.41}/PKG-INFO +1 -1
- warp_beacon-2.3.41/warp_beacon/__version__.py +2 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/scraper/youtube/abstract.py +3 -3
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/scraper/youtube/youtube.py +3 -2
- {warp_beacon-2.3.40 → warp_beacon-2.3.41/warp_beacon.egg-info}/PKG-INFO +1 -1
- warp_beacon-2.3.40/warp_beacon/__version__.py +0 -2
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/LICENSE +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/MANIFEST.in +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/README.md +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/assets/placeholder.gif +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/etc/.gitignore +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/etc/accounts.json +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/etc/proxies.json +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/etc/warp_beacon.conf +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/etc/warp_beacon.service +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/pyproject.toml +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/setup.cfg +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/setup.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/__init__.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/compress/__init__.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/compress/video.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/jobs/__init__.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/jobs/abstract.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/jobs/download_job.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/jobs/types.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/jobs/upload_job.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/mediainfo/__init__.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/mediainfo/abstract.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/mediainfo/audio.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/mediainfo/silencer.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/mediainfo/video.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/scheduler/__init__.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/scheduler/instagram_human.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/scheduler/scheduler.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/scraper/__init__.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/scraper/abstract.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/scraper/account_selector.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/scraper/exceptions.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/scraper/fail_handler.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/scraper/instagram/__init__.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/scraper/instagram/instagram.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/scraper/link_resolver.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/scraper/youtube/__init__.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/scraper/youtube/music.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/scraper/youtube/shorts.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/storage/__init__.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/storage/mongo.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/telegram/__init__.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/telegram/bot.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/telegram/caption_shortener.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/telegram/handlers.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/telegram/placeholder_message.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/telegram/utils.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/uploader/__init__.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon/warp_beacon.py +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon.egg-info/SOURCES.txt +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon.egg-info/dependency_links.txt +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon.egg-info/entry_points.txt +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon.egg-info/requires.txt +0 -0
- {warp_beacon-2.3.40 → warp_beacon-2.3.41}/warp_beacon.egg-info/top_level.txt +0 -0
@@ -279,7 +279,7 @@ class YoutubeAbstract(ScraperAbstract):
|
|
279
279
|
logging.warning("Proxy DSN malformed!")
|
280
280
|
return YouTube(**yt_opts)
|
281
281
|
|
282
|
-
def build_yt_dlp(self) -> yt_dlp.YoutubeDL:
|
282
|
+
def build_yt_dlp(self, timeout: int = 0) -> yt_dlp.YoutubeDL:
|
283
283
|
auth_data = {}
|
284
284
|
with open(self.YT_SESSION_FILE % self.account_index, 'r', encoding="utf-8") as f:
|
285
285
|
auth_data = json.loads(f.read())
|
@@ -300,10 +300,10 @@ class YoutubeAbstract(ScraperAbstract):
|
|
300
300
|
|
301
301
|
return yt_dlp.YoutubeDL(ydl_opts)
|
302
302
|
|
303
|
-
def _download(self, _: str) -> list:
|
303
|
+
def _download(self, _: str, __: int = 60) -> list:
|
304
304
|
raise NotImplementedError("You should to implement _download method")
|
305
305
|
|
306
|
-
def _download_yt_dlp(self, _: str) -> list:
|
306
|
+
def _download_yt_dlp(self, _: str, __: int = 60) -> list:
|
307
307
|
raise NotImplementedError("You should to implement _download_yt_dlp method")
|
308
308
|
|
309
309
|
def download(self, job: DownloadJob) -> list:
|
@@ -28,7 +28,7 @@ class YoutubeScraper(YoutubeAbstract):
|
|
28
28
|
|
29
29
|
return False
|
30
30
|
|
31
|
-
def _download(self, url: str, session: bool = True, timeout: int =
|
31
|
+
def _download(self, url: str, session: bool = True, timeout: int = 60) -> list:
|
32
32
|
res = []
|
33
33
|
try:
|
34
34
|
thumbnail = None
|
@@ -67,7 +67,7 @@ class YoutubeScraper(YoutubeAbstract):
|
|
67
67
|
|
68
68
|
return res
|
69
69
|
|
70
|
-
def _download_yt_dlp(self, url: str) -> list:
|
70
|
+
def _download_yt_dlp(self, url: str, timeout: int = 60) -> list:
|
71
71
|
res = []
|
72
72
|
thumbnail = None
|
73
73
|
video_id = self.get_video_id(url)
|
@@ -78,6 +78,7 @@ class YoutubeScraper(YoutubeAbstract):
|
|
78
78
|
local_file = ydl.prepare_filename(info)
|
79
79
|
logging.debug("Temp filename: '%s'", local_file)
|
80
80
|
res.append({
|
81
|
+
"socket_timeout": timeout,
|
81
82
|
"local_media_path": local_file,
|
82
83
|
"performer": info.get("uploader", "Unknown"),
|
83
84
|
"thumb": thumbnail,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|