[RELEASE] LazyTV

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Karnagious Offline
Fan
Posts: 723
Joined: Nov 2012
Reputation: 30
Post: #1
Note: this Addon is currently found in the Videos section of the XBMC Repository, but will be moved to Programs soon.

The Pitch:
You have a huge library of TV shows and you havent viewed half of it. So why does it feel like such a chore to sit down and watch something?
You know you want to watch TV, so why do you also have to decide what specifically to watch?
LazyTV is here to free you from your battles with indecision, letting you sit back and soak up content.
With one click you can be channel-surfing your own library, or have what you probably want to watch pop up in a single window.


Description:
Unlike a smart playlist or skin widget, LazyTV doesnt just provide the first unwatched episode of a TV show. It provides the first unwatched episode AFTER the last watched one in your library. A small, but important, distinction.

LazyTV offers two main functions:
The first is to create and launch a randomised playlist of the TV episodes. And not just any episodes, but the next episode it thinks you would want to watch. You also have the option to blend in your movies (both the watched and the unwatched) to complete the channel-surfing experience.

The second main function is to populate a window with every "next available" episode for your TV Shows. One click and your viewing menu is there, immediately.


Other features:
Smart playlist filtering: Combine either of the main functions with a playlist of preselected shows to customise your experience even further. Alternatively, you can select specific shows in the Addon Settings.

Set out of order shows: Some TV shows, like cartoons or skit shows, can be viewed out of episodic order. So LazyTV gives you the ability to identify these shows and treat them differently. Those shows will be played in a random order.

Clones: Create duplicate copies of the LazyTV front end. This allows multiple integration in the Home screen. Each clone can have different main functions, settings, show lists, smart playlist filters.

LazyTV also offers two minor functions that extend beyond the addon itself:
Episode notification: an option to be notified if you are about to watch an episode that has an unwatched episode before it. This function excludes the TV shows identified as able to be watched out of order.

Play next episode: posts a notification when you finish watching a TV episode telling you that the next show is available and asks if you want to view it now.

Even more!
- LazyTV can create and maintain a smart playlist for use in other addons and even other smart playlists.
- a new Setting (page 4) can instruct LazyTV to copy the next-to-watch episode from the last 10 watched TV Shows to a folder you specify.

Known issues:
- Streams may work with the List function, but can be problematic with the Random Player.
- Updates of the previously released version may require a restart to take effect.


Wiki page:
http://wiki.xbmc.org/index.php?title=Add-on:LazyTV

Github:
https://github.com/KODeKarnage/script.lazytv


Raspberry Pi users:
LazyTV contains a service that stores the next episodes' information and monitors your player to pre-empt database changes. This is my attempt to make the addon more responsive on my Raspberry Pi. The Pi still takes a while to "warm-up"; a full refresh of the episode data (which occurs at start-up and on a library update) takes about 30 seconds for my ~100 show library*. However, the show list window opens and the random player starts in less than 3 seconds.

*The same update takes 2 seconds on my laptop with its i5 processor


SHOUT OUT!
The addon download statistics dont update very often (as I am writing this, they are 3 months out of date), so I added something into the Addon Settings to provide some basic feedback. It sends a one-time email to me to say "hello! someone is actually using your addon!" Once clicked, the option wont appear again.


Latest Release Changelog
0.9.9
Added context menu
The context menu allows you to:
- select more than one show at a time
- play the selection
- play from "here" option
- export shows to any folder
- mark an episode as watched
- update the library
- refresh the list
Add skinned list view (you can switch back to the default list view in the Settings.)


The icons below are some alternatives I have come up with. Let me know which one you like the best.


(This post was last modified: 2014-06-15 11:12 by Karnagious.)
find quote
EuphoricaL Offline
Junior Member
Posts: 20
Joined: Oct 2004
Reputation: 0
Post: #2
Brilliant add-on! This has gone straight on my main menu. Really useful to see what i'm currently watching and play the next episode.
find quote
Karnagious Offline
Fan
Posts: 723
Joined: Nov 2012
Reputation: 30
Post: #3
Thanks! It is nice to get feedback Big Grin
find quote
liquidtoon Offline
Member
Posts: 83
Joined: Feb 2013
Reputation: 2
Location: United Kingdom
Post: #4
Going to test this out tonight. It'll be tremendous if it works (I bet it does ;-) ). Will save me and the missus loads of time!! Well done.

Living Room | Openelec | ASRock H77 Pro4-M MoBo | 8GB DDR RAM | Intel i5 Processor | Arctic
Man Room | Windows 7 x64 | ASRock H77 Pro4-M MoBo | 8GB DDR RAM | Intel i5 Processor | Arctic
Roaming | iPad 2 | Re-Touched Skin
Storage | WD MyCloud 3TB
find quote
PatK Offline
Donor
Posts: 3,544
Joined: Mar 2010
Reputation: 79
Location: Canada
Post: #5
The program starts with XBMC, anyway of either belaying the start-up or allowing start on icon enable? (I don't mind the delay loading up, I hate carrying bulk around if I'm not going to use it) I've also noticed after tv watching the 'next' choice is given even if the original TV show was not initiated in LazyTV, although this is not really an issue for me, it might be the source of some conflict.
find quote
Karnagious Offline
Fan
Posts: 723
Joined: Nov 2012
Reputation: 30
Post: #6
(2014-04-17 14:23)liquidtoon Wrote:  Going to test this out tonight. It'll be tremendous if it works (I bet it does ;-) ). Will save me and the missus loads of time!! Well done.

If it doesnt, let me know. I need to update the repository version with foreign languages anyway, so a fix could be pushed out relatively quickly.

(2014-04-17 18:20)PatK Wrote:  The program starts with XBMC, anyway of either belaying the start-up or allowing start on icon enable? (I don't mind the delay loading up, I hate carrying bulk around if I'm not going to use it) I've also noticed after tv watching the 'next' choice is given even if the original TV show was not initiated in LazyTV, although this is not really an issue for me, it might be the source of some conflict.

Hi PatK,

You can turn off the auto-start if you edit the addon.xml and remove this line <extension point="xbmc.service" library="service.py" start="startup"></extension> .

That means it wont start on startup, but if you click the icon it will tell you that the service isnt running and asks if you want to start it. Then you just have to wait for the notification to say that it is finished indexing.

The other "next choice" solution worked across everything, so at least this implementation is consistent with that. I did think about adding an option in the Settings to restrict it to only videos launched with LazyTV, but decided to add a "Play series from here onwards" option to a context menu in a future release instead.
(This post was last modified: 2014-04-20 04:50 by Karnagious.)
find quote
Karnagious Offline
Fan
Posts: 723
Joined: Nov 2012
Reputation: 30
Post: #7
Actually, dont delete that line. After looking at the code again, that wont work as I thought it would.
(This post was last modified: 2014-04-20 12:20 by Karnagious.)
find quote
PatK Offline
Donor
Posts: 3,544
Joined: Mar 2010
Reputation: 79
Location: Canada
Post: #8
Many thanks for your response, this is a great addition to XBMC, I would have liked it better as an optional feature, you know how some 3rd party add-ons get in the way of primary code sometimes. Restricting the "next choice" to LazyTV would ensure a bit more confidence that the code is isolated and allow the option of everywhere would be icing on the cake so-to-speak.

Keep up the good work, this add-on could turn into something pretty big if it get's Lazy enough.
find quote
mtoddster Offline
Junior Member
Posts: 20
Joined: May 2012
Reputation: 0
Post: #9
Hey

I was hoping for a update on this post from the old thread about the ordering of the list.

http://forum.xbmc.org/showthread.php?tid...pid1653606

Thanks
find quote
Karnagious Offline
Fan
Posts: 723
Joined: Nov 2012
Reputation: 30
Post: #10
I havent added that to the settings, but if you want it for yourself then edit line 410 in default.py in the LazyTV addon folder and change this:

Code:
nepl_inter.sort(reverse = True)

to this:

Code:
nepl_inter.sort()

This is the full text of the section to help you find it

Code:
    elif sort_by == 2:
        # sort by Unwatched Episodes
        log('sort by unwatched count')
        nepl_inter  = [[ int(WINDOW.getProperty("%s.%s.CountonDeckEps" % ('LazyTV', x['tvshowid'])))
                                , day_conv(x['lastplayed']) if x['lastplayed'] else 0
                                , x['tvshowid']]
                            for x in nepl_retrieved if x['tvshowid'] in nepl_stored]
        nepl_inter.sort(reverse = True)
        nepl        = [x[1:] for x in nepl_inter]
(This post was last modified: 2014-04-21 02:03 by Karnagious.)
find quote
thrak76 Offline
Moderator
Posts: 1,393
Joined: Mar 2011
Reputation: 26
Location: Lake Michigan Shoreline
Post: #11
Just found this addon by-way-of some other thread.

Nice work! I've only just started using it, but I already know it will help me find those unwatched shows! I look forward to more GUI options.
find quote
psike Offline
Fan
Posts: 391
Joined: Aug 2008
Reputation: 0
Post: #12
Great job! Exactly what i was looking for.

Will it be possible for LazyTV to export and save the playlist as a XBMC playlist file (I think it's XSP), or any other way to integrate it with another addon?

What I will really like to do is use LazyTV as a channel in PseudoTV Live.
find quote
PatK Offline
Donor
Posts: 3,544
Joined: Mar 2010
Reputation: 79
Location: Canada
Post: #13
That's not ambitious, I'd like to see LazyTV turn into a LazyPseudoTV... either way ; more choice is good Smile
find quote
bry- Offline
Donor
Posts: 1,250
Joined: Jan 2011
Reputation: 13
Post: #14
(2014-04-25 22:23)PatK Wrote:  That's not ambitious, I'd like to see LazyTV turn into a LazyPseudoTV... either way ; more choice is good Smile

Smart playlist in ptvl you mean ?

[Image: gn.php?u=bry-&fs=10&l=180&t=...;q=_L+-+_T]
(This post was last modified: 2014-04-25 22:24 by bry-.)
find quote
Karnagious Offline
Fan
Posts: 723
Joined: Nov 2012
Reputation: 30
Post: #15
So you guys want a smart playlist? I reckon that's doable.

I think I would be able to set it up so that each LazyTV clone creates its own different smart playlist. That way you could have one for each PseudoTV channel.
find quote
Post Reply