mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-06 01:16:47 -06:00
hard specify ffmpeg, embed thumbnail
thumbnail may create longer wait time for return, ffmpeg may be temporary until droplet is restarted
This commit is contained in:
@@ -49,7 +49,7 @@ class YouTubeAudio(db.Model):
|
||||
|
||||
def download(self):
|
||||
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 --ffmpeg-location ffmpeg --embed-thumbnail --audio-format mp3 -o ./app/sounds/youtube/%(id)s.%(ext)s {self.id}'.split(' '))
|
||||
print(f'Download attempt for {self.id} finished.')
|
||||
|
||||
def delete(self):
|
||||
|
||||
Reference in New Issue
Block a user