Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Play all per subscription #40

Open
durango99 opened this issue Jan 16, 2014 · 0 comments
Open

Enhancement: Play all per subscription #40

durango99 opened this issue Jan 16, 2014 · 0 comments

Comments

@durango99
Copy link

Currently only the New Subscription has a context menu with Play All.

I've added code to allow all subscriptions to have the context menu with Play All. I've arbitrarily limited to play the last 150 videos to prevent channels with large number of videos to delay playing.

YoutTubeNavigation.py

    if (item("channel") or item("contact")):
        if (self.settings.getSetting("username") != "" and self.settings.getSetting("oauth2_access_token")):
            title = self.common.makeAscii(item("channel", ""))

            #ADDED
            cm.append((self.language(30520), "XBMC.RunPlugin(%s?path=%s&action=play_all&user_feed=%s&contact=%s&login=true&listlimit=true&)" % (sys.argv[0], item("path"), item("user_feed"), item("channel"))))

YouTubeFeeds.py

   while next == "true":

        index += 50

        #ADDED
       if get("listlimit") == "true" and index >=150:
            break

YouTubePlaylistControl.py

     #MODIFIED (add uploads)
     elif get("user_feed") in ["recommended", "watch_later", "newsubscriptions", "favorites", "uploads"]:

I do have some working code that will skip watched videos with the Play All feature. However, it's a direct sqlite query and I'm under the impression that JSON-RPC was the formal way to make sqlite database calls. So I'll leave that out for now.

EDIT: Also for now I did a fork on github and put in my changes if you were interested in looking at it.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant