mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2026-01-31 10:26:36 -06:00
simple comment change for YouTubeAudio.download() segment
This commit is contained in:
+2
-3
@@ -48,10 +48,9 @@ class YouTubeAudio(db.Model):
|
|||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
||||||
def download(self):
|
def download(self):
|
||||||
print(f'Downloading MP3 for {self.id}')
|
print(f'Attempting download of {self.id}')
|
||||||
subprocess.run(f'youtube-dl -x -4 --restrict-filenames --audio-format mp3 -o ./app/sounds/youtube/%(id)s.%(ext)s {self.id}'.split(' '))
|
subprocess.run(f'youtube-dl -x -4 --restrict-filenames --audio-format mp3 -o ./app/sounds/youtube/%(id)s.%(ext)s {self.id}'.split(' '))
|
||||||
# os.rename(self.filename, self.getPath())
|
print(f'Download attempt for {self.id} finished.')
|
||||||
print(f'Finished moving {self.id} into proper folder')
|
|
||||||
|
|
||||||
def delete(self):
|
def delete(self):
|
||||||
os.remove(os.path.join('app', 'sounds', 'youtube', self.filename))
|
os.remove(os.path.join('app', 'sounds', 'youtube', self.filename))
|
||||||
|
|||||||
Reference in New Issue
Block a user