Parsing failure: YouTube-Link #65
Labels
No labels
bug
contribution welcome
duplicate
enhancement
good first issue
help wanted
invalid
question
upstream
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Reference
marvin8/feed2fedi#65
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A description of a feed contains a correct url to a youtube video, but instead of ...
watch?v=X-EgA_Caxm0the mastodon post has ...watch?v=X-EgA\_Caxm0. So there is a false\infront of_. The result: the link is broken.Thanks for reporting this... I'll look into this. There is clearly some path escaping happening somewhere.
I am having troubles reproducing the error. When you got the error, did you use a particular post template and/or filters?
Never mind... have been able to reproduce it now.
I have noticed that both
content_markdownandcontent_plaintextinclude the extra escaping. Howevercontent_htmldoes not have the extra escaping and includes the correct link. So as a work around you could potentially usecontent_htmlin your post_template.Anyway, I'll have a look if I can do something about the erroneous escaping now.
I think I got this particular bug sorted. I use a library makdownify to convert html to markdown and plaintext. That library by default escapes
_.Fix in release 3.4.1