Commit c155ee97 authored by Ahmed Hendawy's avatar Ahmed Hendawy
Browse files

remove the old video before downloading the new one

parent 5c1b9985
import os
import pafy
import numpy as np
import cv2
......@@ -77,6 +78,10 @@ class YouTubePlayer:
self.framerate = self.get_property('FrameRate')
if 'URL' in affected_properties:
# Remove the old video
self.url = self.get_property('URL')
vPafy =
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment