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

youtube-dl print "_" as title #21964

Closed
Polliog opened this issue Aug 1, 2019 · 6 comments
Closed

youtube-dl print "_" as title #21964

Polliog opened this issue Aug 1, 2019 · 6 comments
Labels

Comments

@Polliog
Copy link

@Polliog Polliog commented Aug 1, 2019

Hi i'm creating a discord music bot and when the bot print the title of the song it print
"_" i have already tested so print all the dict and the result is "title: _" how can i fix this problem?

Schermata 2019-08-01 alle 00 28 48

class Song:
    __slots__ = ('source', 'requester')

    def __init__(self, source: YTDLSource):
        self.source = source
        self.requester = source.requester

    def create_embed(self):
        embed = (discord.Embed(title='In riproduzione:',
                               description='```css\n{0.source.title}\n```'.format(self),
                               color=discord.Color.orange())
                 .add_field(name='Durata', value=self.source.duration)
                 .add_field(name='Richiesta da', value=self.requester.mention)
                 .add_field(name='Caricata da', value='[{0.source.uploader}]({0.source.uploader_url})'.format(self))
                 .add_field(name='URL', value='[Click]({0.source.url})'.format(self))
                 .set_thumbnail(url=self.source.thumbnail))

dict of the source:

{....... 'title': '_', ........
@darkcircle
Copy link

@darkcircle darkcircle commented Aug 1, 2019

I saw related message on terminal that
"WARNING: Unable to extract video title".

There seems to be changed data format., and should be fixed

@chalda
Copy link

@chalda chalda commented Aug 1, 2019

getting the same issue with my discord bot.
@Polliog can you let me know how you layued out that card with all the info like that?

@Polliog
Copy link
Author

@Polliog Polliog commented Aug 1, 2019

There seems to be changed data format., and should be fixed

okok i will wait
but after the fix i need to update the module?

@Polliog
Copy link
Author

@Polliog Polliog commented Aug 1, 2019

@chalda sure write me on discord Polliog#0001

@dstftw dstftw closed this Aug 1, 2019
@dstftw dstftw added the incomplete label Aug 1, 2019
@jenkins918
Copy link

@jenkins918 jenkins918 commented Aug 1, 2019

I'm receiving the same error and i'm using the latest version

@jenkins918
Copy link

@jenkins918 jenkins918 commented Aug 1, 2019

[youtube] T3jp-b0S5fE: Downloading webpage
[youtube] T3jp-b0S5fE: Downloading video info webpage
WARNING: Unable to extract video title
[youtube] T3jp-b0S5fE: Downloading MPD manifest
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[dashsegments] Total fragments: 46

@ytdl-org ytdl-org locked and limited conversation to collaborators Aug 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

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