Spaces:
Sleeping
Sleeping
Update thaTube.py
Browse files- thaTube.py +1 -1
thaTube.py
CHANGED
@@ -22,7 +22,7 @@ class thaTube:
|
|
22 |
|
23 |
def select_random_video(self):
|
24 |
"""Select a random video from the playlist."""
|
25 |
-
playlist = Playlist(self.
|
26 |
videos = list(playlist.video_urls)
|
27 |
self.video_url = random.choice(videos)
|
28 |
return self.video_url
|
|
|
22 |
|
23 |
def select_random_video(self):
|
24 |
"""Select a random video from the playlist."""
|
25 |
+
playlist = Playlist(self.tubelist)
|
26 |
videos = list(playlist.video_urls)
|
27 |
self.video_url = random.choice(videos)
|
28 |
return self.video_url
|