Spaces:
Sleeping
Sleeping
Update thaTube.py
Browse files- thaTube.py +1 -1
thaTube.py
CHANGED
@@ -123,7 +123,7 @@ class thaTube:
|
|
123 |
|
124 |
def select_random_video(self):
|
125 |
"""Select a random video from the playlist."""
|
126 |
-
playlist = Playlist(self.
|
127 |
videos = list(playlist.video_urls)
|
128 |
self.video_url = random.choice(videos)
|
129 |
return self.video_url
|
|
|
123 |
|
124 |
def select_random_video(self):
|
125 |
"""Select a random video from the playlist."""
|
126 |
+
playlist = Playlist(self.playlist_url)
|
127 |
videos = list(playlist.video_urls)
|
128 |
self.video_url = random.choice(videos)
|
129 |
return self.video_url
|