K00B404 commited on
Commit
6530da3
·
verified ·
1 Parent(s): b1e4999

Update thaTube.py

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