Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 15, 2017, 06:18 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: N.A.N.Y. 2017: Youtube Watcher - Linux only  (Read 3896 times)

Sjc1000

  • Member
  • Joined in 2012
  • **
  • Posts: 22
    • View Profile
    • Donate to Member
N.A.N.Y. 2017: Youtube Watcher - Linux only
« on: September 16, 2016, 08:07 PM »
NANY 2017 Entry Information

Application Name Youtube Watcher
Version 0.7.0
Short Description A program to keep track of new videos from users / playlists.
Supported OSes Linux
Web Page https://github.com/S...1000/youtube_watcher
Download Link https://github.com/S...r/archive/master.zip
System Requirements
  • python3
  • python3-pip


Description
This program keeps track of videos from certain users. You can update to see if they have any new ones.
You can go through the list of new ones and download them right from the program, as either audio or video+audio.

By default it will only show the videos you have not marked as watched. There is a param to turn that off (see https://github.com/S...utube_watcher#params)


Screenshots

1: 1.pngN.A.N.Y. 2017: Youtube Watcher - Linux only
2: 2.pngN.A.N.Y. 2017: Youtube Watcher - Linux only
3: 3.pngN.A.N.Y. 2017: Youtube Watcher - Linux only
4: 4.pngN.A.N.Y. 2017: Youtube Watcher - Linux only

Usage
Installation
https://github.com/S...e_watcher#installing

Using the Application
https://github.com/S...tube_watcher#running

Known Issues
There are currently no known issues, but I am sure there are some. Please report them on the issues section of the repo if you find any.
« Last Edit: October 14, 2016, 01:05 AM by Sjc1000 »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 37,699
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: N.A.N.Y. 2017: Youtube Watcher - Linux only
« Reply #1 on: September 16, 2016, 08:11 PM »
neat.

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 10,942
    • View Profile
    • Donate to Member
Re: N.A.N.Y. 2017: Youtube Watcher - Linux only
« Reply #2 on: September 17, 2016, 03:53 AM »
great idea :up:

maybe I've got to move to Linux :-[
Tom

Sjc1000

  • Member
  • Joined in 2012
  • **
  • Posts: 22
    • View Profile
    • Donate to Member
Re: N.A.N.Y. 2017: Youtube Watcher - Linux only
« Reply #3 on: October 14, 2016, 01:08 AM »
New UI system. Uses curses instead of default printing.
Can now download more than one at once.

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Points: 1
  • Posts: 8,172
    • View Profile
    • The Blog of Deozaan
    • Donate to Member
Re: N.A.N.Y. 2017: Youtube Watcher - Linux only
« Reply #4 on: October 14, 2016, 06:31 AM »
This looks really neat, but I'm wondering why is this Linux only? Isn't Python cross-platform?

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 9,045
    • View Profile
    • Donate to Member
Re: N.A.N.Y. 2017: Youtube Watcher - Linux only
« Reply #5 on: October 14, 2016, 11:15 AM »
This looks really neat, but I'm wondering why is this Linux only? Isn't Python cross-platform?

Theoretically, from what I've seen.  I have an issue on a Python archive in Github that it doesn't work on a Mac.  I wish I'd marked it as Windows compatible only, because I can't debug on the Mac.

Sjc1000

  • Member
  • Joined in 2012
  • **
  • Posts: 22
    • View Profile
    • Donate to Member
Re: N.A.N.Y. 2017: Youtube Watcher - Linux only
« Reply #6 on: October 14, 2016, 07:13 PM »
Python is cross platform, and I think youtube-dl is too.

It could work on Windows, I don't have Windows so I can't install / create instructions to get it running. If anyone is able to get python3 and pip on windows you should be able to get it with 'pip install youtube_watcher'.

Sjc1000

  • Member
  • Joined in 2012
  • **
  • Posts: 22
    • View Profile
    • Donate to Member
Re: N.A.N.Y. 2017: Youtube Watcher - Linux only
« Reply #7 on: November 04, 2016, 10:45 PM »
Ah. Turns out Gtk3, the GUI library I use is not on Windows yet. So its not Windows compatible..... yet.....

I don't even use Gtk3 anymore. So its possible it works.

Sjc1000

  • Member
  • Joined in 2012
  • **
  • Posts: 22
    • View Profile
    • Donate to Member
Re: N.A.N.Y. 2017: Youtube Watcher - Linux only
« Reply #8 on: November 16, 2016, 04:20 PM »
After some more digging I found that ncurses doesn't work on Windows. Which is what I use for the UI nowdays. So there is 0 chance it will work.

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Points: 1
  • Posts: 8,172
    • View Profile
    • The Blog of Deozaan
    • Donate to Member
Re: N.A.N.Y. 2017: Youtube Watcher - Linux only
« Reply #9 on: November 16, 2016, 04:30 PM »
:(

Thanks for investigating.

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 9,045
    • View Profile
    • Donate to Member
Re: N.A.N.Y. 2017: Youtube Watcher - Linux only
« Reply #10 on: November 16, 2016, 11:38 PM »
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

  • Member
  • Joined in 2012
  • **
  • Posts: 22
    • View Profile
    • Donate to Member
Re: N.A.N.Y. 2017: Youtube Watcher - Linux only
« Reply #11 on: November 18, 2016, 09:04 PM »
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

  • Participant
  • Joined in 2017
  • *
  • default avatar
  • Posts: 2
    • View Profile
    • Donate to Member
Re: N.A.N.Y. 2017: Youtube Watcher - Linux only
« Reply #12 on: January 19, 2017, 10:15 PM »
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.e...e/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 [Select]
  1. FILE_DIR = '{}/.youtube_watcher'.format(os.getenv('HOME'))
to
Code: Python [Select]
  1. 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!
« Last Edit: January 19, 2017, 10:48 PM by mattpctech »

mattpctech

  • Participant
  • Joined in 2017
  • *
  • default avatar
  • Posts: 2
    • View Profile
    • Donate to Member
Re: N.A.N.Y. 2017: Youtube Watcher - Linux only
« Reply #13 on: January 19, 2017, 10:25 PM »
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.
youtubewatcher.PNGN.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

  • Member
  • Joined in 2012
  • **
  • Posts: 22
    • View Profile
    • Donate to Member
Re: N.A.N.Y. 2017: Youtube Watcher - Linux only
« Reply #14 on: January 20, 2017, 01:18 AM »
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.