Skip to content

Fix network thumbnailing via playlist workaround#10

Merged
marzzzello merged 1 commit intomarzzzello:masterfrom
gourlaysama:fix/network-thumbnailing-via-playlist
Feb 5, 2022
Merged

Fix network thumbnailing via playlist workaround#10
marzzzello merged 1 commit intomarzzzello:masterfrom
gourlaysama:fix/network-thumbnailing-via-playlist

Conversation

@gourlaysama
Copy link
Copy Markdown

Network thumbnailing regularly fails when it needs to use the mpv playlist
edl:// workaround. This commits adds a workaround for this, though it's a
bit of a hack:

The url added to the playlist contains a bunch of fields like ytdl_description
that are not actually needed. Those will break the playlist if they contain
newlines (which is common in youtube video descriptions, for example), or if
they contain urls (the urls get picked up for some reason...).

I don't know how those url are actually constructed and if it's possible
to just have some fields omitted, but here we just remove the
ytdl_description and everything that follows, and after a few days
of testing it seems to consistently work.


See #8.

That's probably not the cleanest way to do this, but it works.

Network thumbnailing regularly fails when it needs to use the mpv playlist
edl:// workaround. This commits adds a workaround for this, though it's a
bit of a hack:

The url added to the playlist contains a bunch of fields like `ytdl_description`
that are not actually needed. Those will break the playlist if they contain
newlines (which is common in youtube video descriptions, for example), or if
they contain urls (the urls get picked up for some reason...).

I don't know how those url are actually constructed and if it's possible
to just have some fields omitted, but here we just remove the
`ytdl_description` and everything that follows, and after a few days
of testing it seems to consistently work.
@marzzzello
Copy link
Copy Markdown
Owner

Thank you!

@marzzzello marzzzello merged commit 6282073 into marzzzello:master Feb 5, 2022
@gourlaysama gourlaysama deleted the fix/network-thumbnailing-via-playlist branch February 5, 2022 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants