K00B404 commited on
Commit
1dd5e8f
·
verified ·
1 Parent(s): d0d1b42

Update thaTube.py

Browse files
Files changed (1) hide show
  1. 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.tubelist)
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