trizen / youtube-viewer

Lightweight YouTube client for Linux
https://trizenx.blogspot.com/2012/03/gtk-youtube-viewer.html
Artistic License 2.0
1.19k stars 86 forks source link

Stay logged in #393

Closed plasmoduck closed 3 years ago

plasmoduck commented 3 years ago

How do I stay logged in? When I loggin and paste my 0auth key and choose remember me, but after some time I get looked out. Like after an hour or so, havent really timed it. But it doesnt stay logged in.

trizen commented 3 years ago

Make sure youtube-viewer has the permission to create the file ~/.config/youtube-viewer/reg.dat. This is where the encrypted tokens are kept in.

plasmoduck commented 3 years ago

I just checked and that file exists and is populated with what looks like a token (I opened it in vim). Anything else I need to do?

On Tue, Aug 24, 2021 at 07:13:40AM -0700, Daniel Trizen wrote:

Make sure youtube-viewer has the permission to create the file ~/.config/youtube-viewer/reg.dat. This is where the encrypted tokens are kept in.

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/trizen/youtube-viewer/issues/393#issuecomment-904680277

-- Kind regards,

Chris Garvin

trizen commented 3 years ago

Nope. If the file exists, then you should be logged in when you open youtube-viewer. To check that you're logged in, try:

youtube-viewer --likes

which should print the latest videos that you liked on YouTube.

plasmoduck commented 3 years ago

Ok it looks like it's working, thanks

plasmoduck commented 3 years ago

One more thing, I always get a lot of errors like this when I select a video to play, it still loads usually but I always get a message like [410 Gone] Error occurred on URL: https://www.youtube.com/get_video_info?video_id=ucJqZrRaQuY&el=detailpage&ps=default&eurl=&gl=US&hl=en&html5=1&c=TVHTML5&cver=6.20180913

why is this and how to fix?

trizen commented 3 years ago

You seem to be using an older version of youtube-viewer. Check:

youtube-viewer --version

The latest current version is 3.9.4, which includes a fix for that issue.

plasmoduck commented 3 years ago

YouTube Viewer 3.9.2 it came with FreeBSD ports, let me try building from here. Otherwise can you link me to the patch?

trizen commented 3 years ago

Here's the commit in question: https://github.com/trizen/youtube-viewer/commit/7d499e5e50fde02c6209e23bd01654c4fb132d11

All the changes between versions are documented in: https://github.com/trizen/youtube-viewer/releases

plasmoduck commented 3 years ago

Thanks I patched it. Closing this issue.