Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedding thumbnail raise errors #10181

Closed
gigalala opened this issue Jul 28, 2016 · 1 comment
Closed

Embedding thumbnail raise errors #10181

gigalala opened this issue Jul 28, 2016 · 1 comment
Labels

Comments

@gigalala
Copy link

@gigalala gigalala commented Jul 28, 2016

Hi,
When i added "embed thumbnail" option to my script i got error:

thumbnail_filename = info['thumbnails'][-1]['filename'] KeyError: 'filename'

Here is my code:

        ydl_opts = {
            'key':'IgnoreErrors',
            'format': 'bestaudio/best',
            'download_archive': self.songs_data,
            'outtmpl': '/'+download_path+'/'+'%(title)s.%(ext)s',
            'progress_hooks': [self.my_hook],
            'postprocessors': [{
                'key': 'FFmpegExtractAudio',
                'preferredcodec': 'mp3',
                'preferredquality': '192'},
                {'key': 'EmbedThumbnail'},]}

Not sure if its a bug or just me doing something wrong but i tried everything

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jul 29, 2016

Carefully read new issue template and provide all requested information.

@dstftw dstftw closed this Jul 29, 2016
@dstftw dstftw added the incomplete label Feb 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.