Skip to content

Commit

Permalink
Fix youtube playlist issues (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
theychx committed Jun 22, 2022
1 parent f1ae3c8 commit 014ce1f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion catt/stream_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def set_playlist_entry(self, number):

def _get_stream_preinfo(self, video_url):
try:
return self._ydl.sanitize_info(self._ydl.extract_info(video_url, process=False))
return self._ydl.extract_info(video_url, process=False)
except yt_dlp.utils.DownloadError:
# We sometimes get CI failures when testing with YouTube videos,
# as YouTube throttles our connections intermittently. We evaluated
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ click = ">=7.1.2"
ifaddr = ">=0.1.7"
pychromecast = ">=12.1.4, <13"
requests = ">=2.23.0"
yt-dlp = ">=2021.12.1"
yt-dlp = ">=2022.6.22.1"

[tool.poetry.dev-dependencies]
coverage = "*"
Expand Down
8 changes: 4 additions & 4 deletions realcc_tests/test_procedure.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,12 @@ def run(self) -> bool:
YOUTUBE_CTRL_TESTS = [
CattTest(
"cast video from youtube",
["cast", "https://www.youtube.com/watch?v=Rl4GiVtnLE4"],
check_data=("content_id", "Rl4GiVtnLE4"),
["cast", "https://www.youtube.com/watch?v=mwPSIb3kt_4"],
check_data=("content_id", "mwPSIb3kt_4"),
),
CattTest(
"cast video from youtube, start at 2:02",
["cast", "-t", "2:02", "https://www.youtube.com/watch?v=Rl4GiVtnLE4"],
["cast", "-t", "2:02", "https://www.youtube.com/watch?v=mwPSIb3kt_4"],
sleep=5,
time_test=True,
check_data=("current_time", "122"),
Expand Down Expand Up @@ -234,7 +234,7 @@ def run(self) -> bool:
'cast "wav" format audio content from bandcamp (testing format hack)',
["cast", "https://physicallysick.bandcamp.com/track/freak-is-out"],
substring=True,
check_data=("content_id", "track?enc=wav"),
check_data=("content_id", "track?enc=flac"),
),
]

Expand Down

0 comments on commit 014ce1f

Please sign in to comment.