karthink / elfeed-tube

Youtube integration for Elfeed, the feed reader for Emacs
The Unlicense
242 stars 10 forks source link

Sponsorblock? #20

Open sjLambda opened 1 year ago

sjLambda commented 1 year ago

[2023-05-17 17:27:27] [error]: [Sponsorblock][video:VRG: Lecture on KRP]: HTTP 404

How do I get around this block?

karthink commented 1 year ago

That message means this video does not have sponsorblock information -- so there is nothing to block. Could you explain what the problem is in more detail?

sjLambda commented 1 year ago

I got an youtube link in an elfeed item.

I saved the link in my scratch buffer for watching later when I had more time.

Later I fired up M-x elfeed-tube-fetch and pasted the saved url:

https://www.youtube.com/watch?v=bdnehoT9YY4

The echo area showed this text:

Creating a video summary ...

And elfeed-tube-log showed this text:

[2023-05-17 17:27:27] [error]: [Sponsorblock][video:VRG: Lecture on Kant]: HTTP 404

No video metadata was downloaded. Nor even a new buffer opened. I gave it a lot of time to see if that cured it. I tried several times, on two different machines. But the url works fine if I use a regular browser to watch. I am also able to, without any log errors or delay, open many other youtube videos from other channels in both

M-x elfeed-tube-fetch

and

as F in elfeed-entry buffer. I can even see the transcripts.

So I fired up M-x find-library to locate the source of Superblock message. I found it in elfeed-tube.el file at:

     (elfeed-tube-log
       'error
       "[Sponsorblock][video:%s]: %s"
       (elfeed-tube--truncate (elfeed-entry-title entry))
       (plist-get response :error-message)))))

Then I posted on the relevant github page since I could not debug by myself.

Hope this helps.

karthink commented 1 year ago

Thanks for the details.

I'm not able to reproduce the issue. I tried elfeed-tube-fetch on this url and the following buffer popped up: 2023-05-20-161846_828x756_scrot

The sponsorblock "error" is unrelated -- all it's saying is that no sponsorblock info was fetched for this video.

Maybe the Invidious servers were having an issue that day. Could you try again today to be sure?