ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > N.A.N.Y. 2017

N.A.N.Y. 2017: Youtube Watcher - Linux only

<< < (3/3)

wraith808:
Not sure how much work would go into using PDCurses (the windows port of ncurses)

http://www.projectpluto.com/win32a.htm

https://github.com/Bill-Gray/PDCurses

Just posting more for information than anything.

Sjc1000:
It's possible that would fix the UI issue. However, there are probably lots of other issues with running this on Windows since I haven't made anything even think about cross platform.

I have no Windows machine (that I can develop on) and no decent internet to download a VM. So I can't develop in a Windows environment, which sucks.

Thanks for the links though.  :D

mattpctech:
I found a link to this project on ghacks.net, and missed the part of it being linux only until after getting it halfway functional. :-\  However, I did manage to get it to run on windows!
I found an unofficial binary for curses at http://www.lfd.uci.edu/~gohlke/pythonlibs/#curses that works, but there is a change that needs to be made to the file __init__.py in AppData\Local\Programs\Python\Python35-32\Lib\site-packages\youtube_watcher

Around line 27 (forgot which line exactly) you need to change

--- Code: Python ---FILE_DIR = '{}/.youtube_watcher'.format(os.getenv('HOME'))to

--- Code: Python ---FILE_DIR = "C:\\Users\Matthew\AppData\Local\Programs\Python\Python35-32\Scripts" (Fixing as your install requires...)
and it will begin working!

There is a small text output bug causing stuff like this during normal command prompt usage:

C:\Windows\System32>youtube_watcher add seananners
Add ←[1mhttps://www.youtube.com/user/SeaNanners←[0m? [y/n] y
Name ←[1mSeaNanners←[0m or :
Do you wish to update the info now? [y/n] y
Updating ←[1mSeaNanners←[0m

However running "youtube_watcher list" works fine, even downloading videos. It saves them correctly to the current directory the command was run from.

Thank you so much for this neat tool!

mattpctech:
Upon further testing I did run into a problem. It seems after you mark a video as seen it disappears from the interface. Looks like the curses port is not quite up to what is needed quite yet.
N.A.N.Y. 2017: Youtube Watcher - Linux only
I don't know python well enough to troubleshoot any further than the fix I managed earlier, but the tool still works great for downloading videos!

Sjc1000:
If you run it with `youtube_watcher list NAME -s`  you will also get a list of the seen videos, but by default it will only show un-seen ones.

Thanks for getting this working though, Im not sure what is causing that print bug, however.

EDIT:

I also forgot to mention that it works very well inside Windows 10's new bash shell thing.

Navigation

[0] Message Index

[*] Previous page

Go to full version