• 1(current)
  • 2
  • 3
  • 4
  • 5
  • 22
  •   
Beta -  Youtube Library
#1
Video 
YoutubeLibrary 0.9.9.1

Youtube Library now has its own site: YoutubeLibrary.nl.
Check it out! You can get pre-configured playlists there! Donors can even load those pre-configured playlists within the addon!

What does it do?
Youtube Library is an addon that allows you to add Youtube Channels / Playlists to your Kodi Library as if it were TV Shows / Music Videos or Movies! For a clearer picture, you can watch the video below. If you're really impatient, the endresult is at 1:38.

Demonstration / How to use
Download Youtube Library and in Kodi go to: System -> Addons -> Install from zip to enable the repository. Then you can choose "Install from repository" and Youtube Library will auto-update from now on!



Why isnt the youtube video working :S?: https://www.youtube.com/watch?v=2jXB5p4oAww

Youtube Library on Github

Changelog:
Code:
0.9.9.1:
- Fixed deprecated googleapiclient dependency
- Added 1 to 'only grab X videos' option.
- Fixed lower of None error when adding musicvideos.
- Created fallback when poster of tv show is not found to just use the default.png instead of not playing the video at all.

0.9.9:
- Added Feature: Ability to download youtube videos (upto 4k with sound!) instead of creating stream files (.strm) (NOTE: install ffmpeg to be able to download in 1080p+ and more streams)
- Added Feature: Ability to regenerate artwork from youtube for playlists.
- Bugfix: when adding a channel with playlists with incomplete metadata
- Bugfix: Fixed the display of the poster thumbnail when streaming a youtube video
- Bugfix: Unicode errors when playing videos with characters like ë
- Bugfix: Blocked by country no longer blocks the updating of the playlist
- Lots of other small fixes and adjustments

0.9.8.1:
- Minor fixes & adjustments

0.9.8:
- Added Feature (Donor): Add pre-configured Musicvideos playlists from youtubelibrary.nl from within the addon! (Free users can view the playlist settings on youtubelibrary.nl)
- Added Feature (Donor): Add pre-configured Movies playlists from youtubelibrary.nl from within the addon! (Free users can view the playlist settings on youtubelibrary.nl)
- Added Feature: Ability to set timezones for playlists. For example this playlist updates @ 19:00 GMT+2.
- Added Feature: Reverse. (Reverses the playlists in its order. Useful for playlists sorted oldest -> newest instead of newest -> oldest. You should really try to find newest->oldest playlists tho. This function will not work with playlists containing to much videos. This functionality isnt perfect for obvious reasons.)
- Added Feature: Now creates a backup file of a settings.xml every time it alters it (in case it gets corrupted) and validates the file.
- Added Feature: You can now refresh a playlist from its context menu
- Added Feature: Movies support
- Added Feature: IMDB scraper (Tries to identify movies on IMDB, if it succeeds let the IMDB scraper do its work. If it fails the user has the option to not add the video or fallback on addon settings)
- Added Feature: IMDB match cutoff (Determine how much of a percentage the title needs to match the title on IMDB to be acccepted as a match)
- Added Feature: Smart Search (Tries to identify movie information like year & director. It also tries to strip unneeded stuff from the title, for example: "(FULL MOVIE)")
- Added Feature: Use YT Image (Always use the image from Youtube | Never use the image from Youtube | Only if no image is found on IMDB | Dont add the video if no image is found on IMDB)
- Added Feature: Set (Determine the Movieset the movies from the playlists will belong to)
- Added Feature: Resume playback on videos added to the movielibrary
- Bugfix: Videos with & in the title gave an error when playing.
- Bugfix: Doesnt scan the library after refreshing a playlist anymore
- Bugfix: If an error happened while retrieving a playlist, it would raise an exception and stop working until a restart of kodi.
- Bugfix: Turned artist-song around if artist-song found in "X by Y" regex.
- Bugfix: Didnt remove musicvideo folder when deleting the playlist when asked to do so.
- Numerous small fixes & tweaks I forgot to write down

0.9.7:
- Added [Donor only]: Browse & Add pre-configured playlists from youtubelibrary.nl
- Youtubelibrary now has its repo! Install via the repo to get auto updates!
- Added Feature: You can now also search & add playlists by their name, id or even their url!
- Added Feature: You can now browse more then 50 playlists from a channel
- Fix: When using regex in season/episode, it will now handle specials correctly when failing to recognize one of the two.

0.9.6.2:
- Fixed Bug: Addon setting "nofify update" was missing its text

0.9.6.1:
- Fix: Hopefully the double userdata fix also works on linux now.

0.9.6:
- Uses normal icon/fanart again. (if you liked the newyear art better, you can still find it in the root)
- Added Feature: Only grab the last X videos instead of grabbing all videos from the channel / playlist
- Completely redid the way the service works, making different updating rules for each playlist possible
- Added Feature: Set frequency of updates for each playlist seperately
- Added Feature: Set desired day of the week for the updating of playlists
- Added Feature: Set desired time of the day for the updating of playlists
- Added Feature: song_fallback: video title (original). Just use the original video title as the song title, just as it is on youtube.
- Added Feature: Creates artist.nfo & artwork (unfortunatly kodi does not seem to grab these. Perhaps some skins will)
- Added: You can turn on/off the notify message when a playlist gets updated
- Added: TV Fanart also saved in a subdir called extrafanart
- Added: TV .strm & .nfo files are now stored in subdirectories of their season
- Fixed Bug: Unicode error when playing videos
- Fixed Bug: Unicode file paths (japanese characters etc work)
- Fix: Support for smb:// paths
- Fix: When song_fallback is set to video title / video title (original) & artist_recognisition is set to hardcoded, just those values will be used. No further stripping or altering of the artist / song will be done
- Fix: special://profile is now used (fix for double userdata/userdata included :S)
- Fix: Changed service start from startup to login
- Fix: Since the googleoathclient module is fixed, ytlibrary can depend on that now and loses its own oathclient.
- LOTS of small fixes & little changes


0.9.5 - Happy New Year!
- Changed Icon & Fanart to Happy New Year! Edition
- Added Feature: Now works with youtube-dl instead of pafy to get video url (This makes VEVO video playback possible as well)
- Added Feature: Basic Mode. If the settings dazzle you, this is the setting for you. You don't get to alter things much tho.
- Added Feature: Normal Mode (enabled by default). Some options are still hidden.
- Added Feature: Expert Mode. All options are available.
- Added Feature: defaultsetting for Tags
- Fixed Bug: Some defaultsettings for TV were not working
- Added Feature: MusicVideo Support:
Added MusicVideo Features:
- Tries to pretty up the songtitle
- Skip Audio-only videos
- Skip Live videos
- Skip Lyric Videos
- Auto tags Audio-only videos as 'audio'
- Auto tags Live vidoes as 'live'
- Auto tags Lyric videos as 'lyrics'
- Guess artist - song from youtube video/description
- Guess feautured artists, and add those artist as seperete artists on the musicvideo
- Use playlist name, video channel name, hardcoded as Artist fallback
- Use video title as Song title fallback
- Guess Album from video title/description
- Fallback on hardcoded album
- Use video description, playlist description or a hardcoded Plot as plot (description of the music video)
- Guess Year from video title/description
- Use published year or a hardcoded year as year fallback
- Option to not add (skip the video) if recognizition of any tag fails

v0.9.4.1
- Fixed Bug: Tags would error if only one was specified
- Fixed Bug: min-/maxlength now behaving as HH:MM (was MM:SS)
- exclude(words) is now case-insensitive & searches description of the video as well

v0.9.4
- Added Feature: Tags
- Added Feature: s02e12 / 02x12 from the youtube vid title as your season/episode numbering
- Added Feature: You can change the publication date of the show
- Added Feature: You can now set default settings for playlists (shows) you add
- Fixed Error: when adding youtube channel without TV Channel Banner
- Fixed Error: when playing vids from library when not retrieving meta information from database
- Fixed Bug: min-/maxlength is ignored
- Fixed Bug: Episodenr listing will be deleted if you refresh a playlist (episodenumbering will be reset)
- Fixed Bug: Videos longer than 1 hour returned a wrong runtime of minutes
- Fixed Bug: Scraping stopped at a Deleted Video
- removetitle is now case-insensitive

v0.9.3
- Fixed delta_time error on Android (python 2.6)

v0.9.2
- Added support for Android (python 2.6)

v0.9.1
- Removed .git folder & removed xml_declaration, so hopefully systems running python 2.6< will work to


Features
- Able to automatically download or stream videos to the Kodi Tv shows / Music Video / Movies Library with metadata!
- Creates NFO & STRM files (tvshow.nfo & [ep].nfo, [ep].strm) (artist.nfo & [song].nfo, [song].strm)
- Grabs/downloads artwork (fanart, banner, thumbnail) for the (youtube) tvshow (you can edit these images easily)
- Grabs artwork (thumbnail) for each episode
- Grabs/downloads artwork (fanart, banner, thumbnail) for the (youtube) musicvideos.
- Automatically fills in titles & descriptions for tvshow & episodes
- Automatically grabs airdate for tvshow & episodes
- Can set title for (youtube) tv show
- Can set genres for (youtube) tv show
- Can set tags for (youtube) tv show
- Automatically generates nice looking season numbering (year, number, regex) & episode numbering (default, playlist position, monthday, monthdayhour, monthdayhourminute, number, regex)
- Can remove & strip text from titles and descriptions (text, regex)
- Only rips videos you dont have yet. Videos already in the library are not rescanned everytime.
- Has a Service that will scan new episodes automatically into the library
- Plays Youtube Videos (max. 720p now)
- Marks episodes as watched automatically
- Remembers where you ended the episode, so you can choose to resume the video
- Supports PseudoTV Live
- Filters to skip videos from the playlist / channel you don't want.
- Automatic recognition of album, artist, featured artist, year & song title.
- Match movies on IMDB
- A whole lot more!

Known Bugs / Limitations
- Videos are max. 720p, even if higher resolutions are available
- No subtitle support
- It's possible you don't get new episodes if the order of the playlist is not (exactly) newest > oldest. (with oldest > newest, you will most certainly not recieve new videos. Blame Google for not including a sort-by-date option)
- Episode sorting option 'pos' is broken

Possible / Planned Features (no promises, just possible features i thought off)
- Tags (Added in v0.9.4)
- 1080p+ support
- Subtitles support
- Music Videos Support (Added in v0.9.5)
- Music Support
- (Legal) movie support (Added in v0.9.8)
- Support to add your own playlists (with authentication)
- Vevo.com support (better information about artistinfo and such, plus 1080p playback)

Donate Features (You will always be able to get the same endresults with the non-donate addon)
- Developer List (Pre-configured and organised youtube channels to add) (Added in v0.9.7)

Left to do before V1.0
- Localise all strings
- Perhaps a submit playlist to community list option

How can you help?
You can help out by reporting bugs and showing your support! Help with programming & translating in your language is very much welcome! Sending me tips of great channels is also appreciated Smile.
You can also donate a few bucks so I can pay for hosting and make YTlibrary even greater!

Donate for hosting costs [Goal: €24,- a year: Reached: €0 (0%)]
(Unfortunatly paypal takes a cut.)
[Image: btn_donateCC_LG.gif]
Reply
#2
This software is currently BETA and is the first Kodi addon I've ever written. So bugs are to be expected during this test fase. Please report bugs and supply feedback Smile.

Please use common sense when adding new channels. For example, IGN has 100.000+ videos on its channel. Not only will such a task use up many of my quota and much of your cpu, but do you really want 100.000 IGN episodes in your tv show library?

Addon Settings(as of v0.9.5)
General
Download Images : Off: Only put links in tvshow.nfo. On: downloads folder.jpg, banner.jpg & fanart.jpg to directory.
Resume Playback: On: on playback gives an option to return viewing at the point of stop.
Play videos from library with: Youtube Library: plays using this addon. Official Kodi Addon: plays using official Kodi addon. (Resume playback wont work anymore using this option)
Debug Mode: On: logs debug information into the log (needed for bug reporting here)
Mode: Basic: Only basic functions are shown. Normal: Most options are shown. Expert: All options are shown.

Library Settings
Scan for new video every X hours: Scans for new videos to add every X hours
Update video library after updating new youtube vids: On: After scanning for new videos, will tell Kodi to update the folder containing the newly added episodes.
Tv shows directory: The directory the episodes will be saved in. (This is the folder you need to add as a video source in Kodi under Video -> Files. Set the type of source to Tv Shows and the scraper to "Local information only")
Music Videos directory: The directory the Music Videos will be saved in. (This is the folder you need to add as a video source in Kodi under Video -> Files. Set the type of source to Music Videos and the scraper to "Local information only" and enable "Scan Recursively" )

Default TV Shows Settings
.....: When adding a new playlist, whichever option is set here, will be set as default for the newly added playlist

Default MusicVideo Settings
When adding a new playlist, whichever option is set here, will be set as default for the newly added playlist:

Tags: If you would like to add tags to your Music Video, put them here. Multiple tags can be seperated with /. So tag1 / tag2 will create 2 tags.
Skip Audio Only Videos: Attempts to skip video's that only have the audio clip of the song, and not a videoclip / live or lyric video.
Skip Lyric Videos: Attempts to skip video's that are lyric videos.
Skip Live Videos: Attempts to skip video's that are Live versions of the song.
Skip Album Videos: Attempts to skip videos that are an complete album.
Genre: How the addon should attempt to recognize the genre. Only option is hardcoded at the moment.
Genre Fallback: If the above has failed, this is the fallback the addon will use to still recognize a genre.
Genre Hardcoded: This will be used if the hardcoded option in Genre or Genre Fallback is used. For multiple genres, use a /. So genre1 / genre2 will create 2 genres. However genre1/genre2 will not.
Song Fallback: If the addon should fail to recognize a songtitle in the video, this will be used as the fallback to still recognize a song title.
-- Video Title: The title of the video.
-- Do not add: Do not add this video
Artist: How the addon should attempt to recognize the artist.
-- Video title and description: Attempts to recognize the artist from the video title and/or description text.
-- Playlist channelname: Uses the title of the playlist in this addon as the artist.
-- Video channelname: Uses the name of the channel who uploaded the video as the artist.
-- Hardcoded: Uses the setting Artist Hardcoded as the artist.
Artist Fallback: If the above has failed, this is the fallback the addon will use to still recognize a artist.
Artist Hardcoded: This will be used if the hardcoded option in Artist or Artist Fallback is used.
Album: How the addon should attempt to recognize the album.
-- Video title and description: Attempts to recognize the album from the video title and/or description text.
-- Published year: Uses the year the video was uploaded as the name of the album.
-- Hardcoded: Uses the setting Album Hardcoded as the album.
Album Fallback: If the above has failed, this is the fallback the addon will use to still recognize an album.
Album Hardcoded: This will be used if the hardcoded option in Album or Album Fallback is used.
Plot: How the addon should attempt to recognize the plot (description of musicvideo).
-- Lyrics in video description: Attempts to only grab lyrics from the description.
-- Video Description: Uses the description of the video as the plot.
-- Playlist Description: Uses the description of this playlist as it is in this addon as the plot.
-- Hardcoded: Uses the setting Plot Hardcoded as the plot.
Plot Fallback: If the above has failed, this is the fallback the addon will use to still recognize a plot.
Plot Hardcoded: This will be used if the hardcoded option in Plot or Plot Fallback is used.
Year: How the addon should attempt to recognize the artist.
-- Video title and description: Attempts to recognize the year from the video title and/or description text.
-- Published year: Uses the year the video was uploaded as the year of the musicvideo.
-- Hardcoded: Uses the setting Year Hardcoded as the year.
Year Fallback: If the above has failed, this is the fallback the addon will use to still recognize a year.
Year Hardcoded: This will be used if the hardcoded option in Year or Year Fallback is used.

Min length: Videos should have this minimum length (HH:MM) to be added.
Max length: Videos should be shorter than this max length (HH:MM) to be added.
Only include: Only add videos that contain this text in the video title. For multiple use a | to seperate them. So find this|find that will find both 'find this' and 'find that'.
Exclude: Don't add videos that contain this text in the video title. For multiple use a | to seperate them. So find this|find that will find both 'find this' and 'find that'.
Strip Description: When this text is found, strip this text from the description and all text that follows it. For multiple use a | to seperate them. So find this|find that will find both 'find this' and 'find that'.
Remove Description: Remove the found text from the description. For multiple use a | to seperate them. So find this|find that will find both 'find this' and 'find that'.
Strip Title: Same as strip description, but for the video title.
Remove title: Same as Remove description, but for the video title.
Write NFO: If disabled, the addon will not write .nfo files, but .strm files only. .nfo files are needed to scan the files into the Kodi Library, so you probably don't want to disable this Wink.

Donor Functions
If you are a donor, please fill in these settings to make use of your donor account:

Enable Donor Functions: Enable to enable the donor functions
API Token: The API token you recieved when registering at youtubelibrary.nl
Language: Only playlists matching the language selected will be displayed while browsing pre-configured playlists. Use the other language field to select more then one language you like to see.
Reply
#3
Tutorials:
How to install & use Youtube Video
Step by step Install & use (by edge06)


FAQ

- How can I add my own playlists?
Did you know that..
.. you can also search for playlists by its url or playlist id?

You should always:
1) Make your playlist public
2) Set your playlist to sort by newest added -> oldest added. (or check the box; add new videos on top of playlist)

We're gonna use this playlist of mine as an example here: https://www.youtube.com/playlist?list=PL...Ny717Ieg3c
Method 1 - Searching for the playlist directly
1) Go to the YTlibrary addon in Kodi
2) Choose 'Add new playlist as X' (where X is for example TV Show)
3) Paste the url of the playlist in the search bar (which is in the example: https://www.youtube.com/playlist?list=PL...Ny717Ieg3c)
4) Choose the playlist in question (only one should be visible to choose from)
4) Profit!

Method 2 - Search playlist by its channel name*
*= it could be you need to upload a video before your channel becomes searchable to make this method work.
1) Go to the YTlibrary addon in Kodi
2) Choose 'Add new channel as X' (where X is for example Tv Show)
3) Type the name of your channel (in my case Sleuteltje) in the search box
4) Choose your channel
5) Choose the playlist in question
6) Profit!
Reply
#4
This is cool!
Reply
#5
(2015-11-03, 00:43)dalethefarmer Wrote: This is cool!
Thnx, glad you like it Smile!
Reply
#6
Very nice...
Reply
#7
Really nice add-on.

Could do with Android support if possible and the ability to add custom tags to the shows.

Deleting the .git folder in the zip allowed it to install on android.

edit: getting this error when I launch the addon on Android 5.1 / Kodi 15.2: http://pastebin.com/NJbfkzsb
Reply
#8
(2015-11-03, 04:33)locoguano Wrote: Very nice...
Thnx Smile

ParanoidJack Wrote:Really nice add-on.

Could do with Android support if possible and the ability to add custom tags to the shows.
Thanks Smile

I was hoping it worked on Android already. Will fix that error, thank you for submitting a log file!

Nice catch about the tags, didn't thought of that yet. I will implement that feature in a later release.
Reply
#9
(2015-11-03, 16:26)Paranoidjack Wrote: edit: getting this error when I launch the addon on Android 5.1 / Kodi 15.2: http://pastebin.com/NJbfkzsb

Could you try version 0.9.1? The error should be gone now.
Reply
#10
I needed something like this ! Many Thanks

If i got this correctly you add videos to the TV lib only , right ? Are you planning on expanding this and add to the movies and/or music videos ?
Reply
#11
I've tested 0.9.1 version and it's still giving an error: http://pastebin.com/En84KwN7 - fresh install with none of its previous settings.
Reply
#12
(2015-11-04, 11:41)ederson Wrote: I needed something like this ! Many Thanks

If i got this correctly you add videos to the TV lib only , right ? Are you planning on expanding this and add to the movies and/or music videos ?
Thnx! Thanks for your feedback!

If you see the part "Possible / Planned Features", you see that I've already thought of music videos & movies. I do have some troubling thought tho. There aren't many legal movies to find on Youtube, and the function to add to the movie library could result in many messy library's. So I have to think how such a thing should look.

Music videos will most definitly be added. Getting the correct genres from youtube could be troubling tho, and if people add hundreds - thousands of artists to follow, updating the vids could be a challenging task.

Music support will maybe be added to (that you will only hear the audio stream), but I have to find a way of splitting the audio from the video without downloading it.

Paranoidjack Wrote:I've tested 0.9.1 version and it's still giving an error: http://pastebin.com/En84KwN7 - fresh install with none of its previous settings.
A friend of mine lend me an Android Box for testing, I've ordered one for myself to prevent this from happening in the future (I like to support as many users as possible Wink ). The problem is that Kodi on Android runs on Python 2.6 for some reason, instead of Python 2.7 which Kodi runs on on Windows. I'm working on fixing all errors on Python 2.6, but it seems to be quite a task, since many tricks I'm using were only available since Python 2.7.
Reply
#13
Okay, things are working here on the android box here + Kodi 15.2 Smile. It was less work then i anticipated.

The only thing that isn't working on Android is the automatic updating of the library, at least on my end. I don't get why (i will look into this later if more people have this problem). So for the episodes to show up in the library, it could be that you should update the library manually.

Download Youtube Library v0.9.2

Another thing, when adding the TV folder as a tv-source in Kodi, the "userdata" option was not listed. So I just typed the whole path: (special://userdata/addon_data/plugin.video.youtubelibrary/Streams/TV) Is this something all Android Kodi's have?
Reply
#14
It's working but sometimes it gives this error when updating playlists: http://pastebin.com/QERgTsq9

Writing the files to path: /storage/usbdrive2/kodi/youtube/

Not sure about the "userdata" option; will need to have a look.
Reply
#15
I love the idea, mainly for creating a music video library using YouTube videos but I can not for the life of me get this to install on my raspberry pi 2 running Kodi 15.2. It keeps telling me that it does not have the correct file structure to install. Any suggestions would be greatly appreciated.
Reply
  • 1(current)
  • 2
  • 3
  • 4
  • 5
  • 22
  •   
 
Thread Rating:
  • 3 Vote(s) - 5 Average



Logout Mark Read Team Forum Stats Members Help
Youtube Library53