Youtube is broken... (1 Viewer)

Remmerboy

Portal Member
June 19, 2008
16
2
Denmark Denmark
The feed urls that worked previously with the 2.0 API, are no longer supported. Check here:
https://developers.google.com/youtube/v3/docs/
If you can find the query you want here, I can add it :)
The closest thing i could find was using the activities.list home=true with type "upload" i found it via https://code.google.com/p/gdata-issues/issues/detail?id=3946
But it doesn't seem to be the same as the subscription feed (tested here https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.activities.list ) .
I don't know how you made your api, but this guy made this https://github.com/DouglasMeyer/YoutubeNewSubscriptionVideos (a guy made it on the issues link, scroll waaaay down), maybe it's implementable for OV.
Also, do you use activities.list for grabbing videos or playlist.list? it seems activities.list does resembles the way you used on apiv2 when choosing a user
 

doskabouter

Development Group
  • Team MediaPortal
  • September 27, 2009
    3,740
    1,981
    Nuenen
    Netherlands Netherlands
    Country flag
    Uh, maybe I forgot to embed an assembly - the v3 Api is actually .net 4.5 :( I had to pull some tricks to get it working, but on dev PC it works with current OV.
    So, should I install .NET 4.5, and it'll work?
     

    Shadime

    MP Donator
  • Premium Supporter
  • June 2, 2009
    106
    5
    Australia Australia
    When trying to watch a particular YouTube video that I have watched on the website it comes up with 'unable to play video no URL'
    and this from the logs:

    [05-08 09:48:40,539] [OnlineVideos] [DEBUG] GetWebData-GET: 'http://youtube.com/get_video_info?video_id=lc76Pompwkc&has_verified=1'
    [05-08 09:48:41,524] [OnlineVideos] [DEBUG] GetWebData-GET: '
    '
    [05-08 09:48:43,905] [MPMain ] [INFO ] Preparing graph for playback of 'https://r5---sn-uxanug5-ntqe.google...rce,upn,expire&gcr=au&source=youtube&ext=.mp4'
    [05-08 09:48:44,623] [OnlineVideos] [INFO ] Start prebuffering ...
    [05-08 09:48:44,628] [OnlineVideos] [INFO ] BufferFile : using 'MediaPortal IPTV filter and url source splitter' as source filter
    [05-08 09:48:44,632] [OnlineVideos] [WARN ] System.ArgumentException: The protocol is not supported.
    Parameter name: uri
    at OnlineVideos.MPUrlSourceFilter.HttpUrl..ctor(Uri uri)
    at OnlineVideos.MPUrlSourceFilter.HttpUrl..ctor(String url)
    at OnlineVideos.MPUrlSourceFilter.UrlFactory.CreateUrl(String url)
    at OnlineVideos.MPUrlSourceFilter.UrlBuilder.GetFilterUrl(SiteUtilBase siteUtil, String url)
    at OnlineVideos.MediaPortal1.Player.OnlineVideosPlayer.BufferFile(SiteUtilBase siteUtil)
    [05-08 09:48:44,633] [OnlineVideos] [INFO ] Buffering was aborted.
    [05-08 09:48:44,760] [OnlineVideos] [INFO ] Prebuffering failed.
     

    Frank Laczko

    Portal Member
    February 3, 2012
    17
    3
    I must be missing something here.

    I open up youtube in chrome, log into youtube so that I have selected the youtube account.

    Alright the new Site is published!

    You can no longer provide your credentials from within MediaPortal - the new API requires to open a browser and choose your YouTube account, so you can give OnlineVideos access to the required information. The token is then saved for later access. You can enable this functionality as usual from the context menu on the youtube site.
    How do I now 'enable this functionality as usual from the context menu on the youtube site'??? Once I am logged into youtube (In Chrome), I have a drop down on the upper left that allows me to switch between subbed channels, liked, what to watch, etc... On the upper right I have my avatar which when opened allows me to change accounts (already on the proper one).. I select settings for the account I am on and it takes me to my account settings page, but I don't see anything in there related to access or tokens.

    When I go into mediaportal, then into onlinevideos, bring up the menu I have layout, enter pin, manage sites, settings (others are greyed out)

    When I select manage sites I get my list of sites, I scroll to youtube, hit enter, popup window, select 'Update my site' and I get a spinning wheel for a moment, then nothing...

    Go back to onlinevideos, go into youtube and I have 'youtube guide' and 'youtube categories' - go into categories, select a random, videos play..

    Shouldn't I also be seeing my Watch Later, Subscriptions, etc....??? I am sure it's me missing a step on the youtube site, any idea?

    Thanks in advance :)
     

    Remmerboy

    Portal Member
    June 19, 2008
    16
    2
    Denmark Denmark
    You have to enable login first in online video settings for youtube (the old youtube you could write your loginname, now you have to enable login). After that, when you enter youtube in online videos, a browser will popup where you have to click on the username you want to use
     

    Frank Laczko

    Portal Member
    February 3, 2012
    17
    3
    You have to enable login first in online video settings for youtube (the old youtube you could write your loginname, now you have to enable login). After that, when you enter youtube in online videos, a browser will popup where you have to click on the username you want to use

    AHHH!!! Mucho Danke!!! I was wondering what that setting was.
     

    2102Michael

    Portal Member
    December 17, 2010
    22
    1
    Austria Austria
    If I go to "Manage Sites" I see a complete empty screen. Uninstalled Online Videos and reinstalled ist again. The only difference, now I have no Online Video configuration in the MediaPortal Setup :-(

    I have no idea where I could enable "login"?
    I can still open YouTube videos from my Playlist, Favorites etc. bot NOT "New Videos" and "Suggestions"

    Please help, I really loved that plug in. :)

    Thanks!

    [05-08 17:15:08,737] [OVInit ] [INFO ] Using language 'de'
    [05-08 17:15:08,790] [OVInit ] [DEBUG] Translating skin
    [05-08 17:15:08,839] [OVInit ] [INFO ] Thumbnails will be stored in C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\OnlineVideos\ with a maximum age of 100 days.
    [05-08 17:15:08,851] [OVInit ] [INFO ] ConfigFile "C:\ProgramData\Team MediaPortal\MediaPortal\OnlineVideoSites.xml" was not found. Using embedded resource.
    [05-08 17:15:09,335] [OVInit ] [INFO ] Loaded 151 sites from OnlineVideoSites.xml
    [05-08 17:15:09,673] [OVInit ] [INFO ] Looking for SiteUtils and Hosters in OnlineVideos (Version: 2.0.0.3592, Compiled: 2015-03-26 18:39:36)
    [05-08 17:15:09,717] [OVInit ] [INFO ] Looking for SiteUtils and Hosters in OnlineVideos.Sites.apondman (Version: 2.0.5563.33589, Compiled: 2015-03-26 18:39:39)
    [05-08 17:15:09,722] [OVInit ] [INFO ] Looking for SiteUtils and Hosters in OnlineVideos.Sites.brownard (Version: 1.0.0.0, Compiled: 2015-03-26 18:39:40)
    [05-08 17:15:09,726] [OVInit ] [INFO ] Looking for SiteUtils and Hosters in OnlineVideos.Sites.corporategadfly (Version: 1.1.0.3592, Compiled: 2015-03-26 18:39:42)
    [05-08 17:15:09,730] [OVInit ] [INFO ] Looking for SiteUtils and Hosters in OnlineVideos.Sites.DavidCalder (Version: 1.0.0.3592, Compiled: 2015-03-26 18:39:43)
    [05-08 17:15:09,740] [OVInit ] [INFO ] Looking for SiteUtils and Hosters in OnlineVideos.Sites.diebagger (Version: 1.0.0.0, Compiled: 2015-03-26 18:39:40)
    [05-08 17:15:09,756] [OVInit ] [INFO ] Looking for SiteUtils and Hosters in OnlineVideos.Sites.Dj_Moren (Version: 1.0.0.1, Compiled: 2015-03-26 18:39:41)
    [05-08 17:15:09,760] [OVInit ] [INFO ] Looking for SiteUtils and Hosters in OnlineVideos.Sites.doskabouter (Version: 1.0.0.3592, Compiled: 2015-03-26 18:39:39)
    [05-08 17:15:09,779] [OVInit ] [INFO ] Looking for SiteUtils and Hosters in OnlineVideos.Sites.hioctane (Version: 1.0.0.0, Compiled: 2015-03-26 18:39:39)
    [05-08 17:15:09,782] [OVInit ] [INFO ] Looking for SiteUtils and Hosters in OnlineVideos.Sites.ksya (Version: 3.2.0.0, Compiled: 2015-03-26 18:39:43)
    [05-08 17:15:09,786] [OVInit ] [INFO ] Looking for SiteUtils and Hosters in OnlineVideos.Sites.ministerk (Version: 2.0.0.3592, Compiled: 2015-03-26 18:39:42)
    [05-08 17:15:09,791] [OVInit ] [INFO ] Looking for SiteUtils and Hosters in OnlineVideos.Sites.MrP (Version: 1.0.0.3592, Compiled: 2015-03-26 18:39:43)
    [05-08 17:15:09,795] [OVInit ] [INFO ] Looking for SiteUtils and Hosters in OnlineVideos.Sites.offbyone (Version: 1.0.0.3592, Compiled: 2015-03-26 18:39:39)
    [05-08 17:15:09,832] [OVInit ] [INFO ] Looking for SiteUtils and Hosters in OnlineVideos.Sites.pilehave (Version: 1.0.0.0, Compiled: 2015-03-26 18:39:39)
    [05-08 17:15:09,836] [OVInit ] [INFO ] Looking for SiteUtils and Hosters in OnlineVideos.Sites.rick164 (Version: 1.0.0.0, Compiled: 2015-03-26 18:39:41)
    [05-08 17:15:09,839] [OVInit ] [INFO ] Looking for SiteUtils and Hosters in OnlineVideos.Sites.SilentException (Version: 1.0.0.0, Compiled: 2015-03-26 18:39:39)
    [05-08 17:15:09,842] [OVInit ] [INFO ] Looking for SiteUtils and Hosters in OnlineVideos.Sites.SK_CZ (Version: 1.7.0.3592, Compiled: 2015-03-26 18:39:41)
    [05-08 17:15:09,846] [OVInit ] [INFO ] Looking for SiteUtils and Hosters in OnlineVideos.Sites.titof (Version: 1.0.0.0, Compiled: 2015-03-26 18:39:40)
    [05-08 17:15:09,849] [OVInit ] [INFO ] Found 177 SiteUtils and 72 Hosters in 18 assemblies
    [05-08 17:15:09,904] [OVInit ] [DEBUG] Create subtitlehandler for '', languages ''
    [05-08 17:15:09,910] [OVInit ] [DEBUG] SubtitleDownloader: classname empty
    [05-08 17:15:09,922] [OVInit ] [DEBUG] Create subtitlehandler for '', languages ''
    [05-08 17:15:09,931] [OVInit ] [DEBUG] SubtitleDownloader: classname empty
    [05-08 17:15:09,940] [OVInit ] [DEBUG] Create subtitlehandler for '', languages ''
    [05-08 17:15:09,944] [OVInit ] [DEBUG] SubtitleDownloader: classname empty
    [05-08 17:15:10,142] [OVInit ] [INFO ] New Browser session
    [05-08 17:15:10,146] [OVInit ] [INFO ] New Browser session
    [05-08 17:15:10,150] [OVInit ] [INFO ] Created 152 SiteUtils
    [05-08 17:15:10,319] [OVLatest ] [INFO ] LatestVideosManager getting new data from SiteUtils.
    [05-08 17:15:12,649] [MPMain ] [INFO ] OnPageLoad of Site Updater with PreviousWindowId '0'
    [05-08 17:15:12,727] [MPMain ] [INFO ] Updater loading Sites Overview from Webservice
    [05-08 17:15:12,739] [MPMain ] [WARN ] Error on getting sites overview from server: System.Net.WebException: Fehler bei der Anforderung mit HTTP-Status 417: Expectation failed.
    bei System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
    bei System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
    bei OnlineVideos.OnlineVideosWebservice.OnlineVideosService.GetSitesOverview()
    bei OnlineVideos.Sites.Updater.GetRemoteOverviews(Boolean force)
    [05-08 17:15:12,747] [MPMain ] [WARN ] Error on getting dlls overview from server: System.Net.WebException: Fehler bei der Anforderung mit HTTP-Status 417: Expectation failed.
    bei System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
    bei System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
    bei OnlineVideos.OnlineVideosWebservice.OnlineVideosService.GetDllsOverview()
    bei OnlineVideos.Sites.Updater.GetRemoteOverviews(Boolean force)
    [05-08 17:15:14,093] [OVLatest ] [DEBUG] GetWebData-GET: 'http://www.svtplay.se/'
    [05-08 17:15:14,332] [OVLatest ] [DEBUG] GetWebData-GET: 'http://playapi.mtgx.tv/v3/config/1209?device=web&premium=open'
    [05-08 17:15:14,730] [OVLatest ] [DEBUG] GetWebData-GET: 'http://playapi.mtgx.tv/v3/sections?...&channel=1209&mixed=1&premium=open&device=web'
    [05-08 17:15:14,937] [OVLatest ] [DEBUG] GetWebData-GET: 'http://playapi.mtgx.tv/v3/config/1933?device=web&premium=open'
    [05-08 17:15:15,001] [OVLatest ] [DEBUG] GetWebData-GET: 'http://playapi.mtgx.tv/v3/sections?...&channel=1933&mixed=1&premium=open&device=web'
    [05-08 17:15:15,381] [OVLatest ] [DEBUG] GetWebData-GET: 'http://playapi.mtgx.tv/v3/config/3000?device=web&premium=open'
    [05-08 17:15:15,465] [OVLatest ] [DEBUG] GetWebData-GET: 'http://playapi.mtgx.tv/v3/sections?...&channel=3000&mixed=1&premium=open&device=web'
    [05-08 17:15:18,929] [MPMain ] [INFO ] DoPageLoad with CurrentState 'groups', PreviousWindowId '0'
    [05-08 17:15:19,518] [OVLatest ] [DEBUG] GetWebData-GET: 'http://playapi.mtgx.tv/v3/config/1375?device=web&premium=open'
    [05-08 17:15:19,602] [OVLatest ] [DEBUG] GetWebData-GET: 'http://playapi.mtgx.tv/v3/sections?...&channel=1375&mixed=1&premium=open&device=web'
    [05-08 17:15:19,740] [OVLatest ] [DEBUG] GetWebData-GET: 'http://playapi.mtgx.tv/v3/config/1482?device=web&premium=open'
    [05-08 17:15:19,798] [OVLatest ] [DEBUG] GetWebData-GET: 'http://playapi.mtgx.tv/v3/sections?...&channel=1482&mixed=1&premium=open&device=web'
    [05-08 17:15:20,308] [OVLatest ] [DEBUG] GetWebData-GET: 'http://playapi.mtgx.tv/v3/config/3687?device=web&premium=open'
    [05-08 17:15:20,368] [OVLatest ] [DEBUG] GetWebData-GET: 'http://playapi.mtgx.tv/v3/sections?...&channel=3687&mixed=1&premium=open&device=web'
    [05-08 17:15:20,900] [OVLatest ] [DEBUG] GetWebData-GET: 'http://playapi.mtgx.tv/v3/config/1550?device=web&premium=open'
    [05-08 17:15:20,959] [OVLatest ] [DEBUG] GetWebData-GET: 'http://playapi.mtgx.tv/v3/sections?...&channel=1550&mixed=1&premium=open&device=web'
    [05-08 17:15:23,346] [OnlineVideos] [INFO ] Looking for dynamic categories for site 'YouTube'
    [05-08 17:15:23,416] [OnlineVideos] [INFO ] Found 26 dynamic categories for site 'YouTube'
    [05-08 17:15:24,810] [OVLatest ] [DEBUG] GetWebData-GET: 'http://urplay.se/Senaste?product_type=programtv'
    [05-08 17:15:24,946] [OVLatest ] [DEBUG] GetWebData-GET: 'https://cms-service.viaplay.se/translations/web'
    [05-08 17:15:25,688] [OVLatest ] [DEBUG] GetWebData-GET: 'https://content.viaplay.se/pc-se/film/samtliga?sort=recently_added'
    [05-08 17:15:26,184] [OVLatest ] [DEBUG] GetWebData-GET (cached): 'https://cms-service.viaplay.se/translations/web'
    [05-08 17:15:26,196] [OVLatest ] [DEBUG] GetWebData-GET: 'https://content.viaplay.no/pc-no/filmer/alle?sort=recently_added'
    [05-08 17:15:26,614] [OVLatest ] [DEBUG] GetWebData-GET (cached): 'https://cms-service.viaplay.se/translations/web'
    [05-08 17:15:26,625] [OVLatest ] [DEBUG] GetWebData-GET: 'https://content.viaplay.dk/pc-dk/film/alle?sort=recently_added'
    [05-08 17:15:27,153] [OVLatest ] [DEBUG] GetWebData-GET (cached): 'https://cms-service.viaplay.se/translations/web'
    [05-08 17:15:27,168] [OVLatest ] [DEBUG] GetWebData-GET: 'https://content.viaplay.fi/pc-fi/leffat/kaikki?sort=recently_added'
    [05-08 17:15:27,625] [OVLatest ] [INFO ] LatestVideosManager found 40 videos from 14 SiteUtils.
    [05-08 17:15:34,202] [MPMain ] [INFO ] DoPageLoad with CurrentState 'groups', PreviousWindowId '0'
    [05-08 17:15:37,363] [MPMain ] [INFO ] OnPageLoad of Site Updater with PreviousWindowId '4755'
     

    Herr R aus B

    MP Donator
  • Premium Supporter
  • December 22, 2007
    241
    28
    Berlin
    Germany Germany
    The feed urls that worked previously with the 2.0 API, are no longer supported. Check here:
    https://developers.google.com/youtube/v3/docs/
    If you can find the query you want here, I can add it :)
    hi

    took a look into how they do it in kodi (former xbmc) - found this:

    Code:
        def get_uploaded_videos_of_subscriptions(self, start_index=0):
            params = {'max-results': str(self._max_results),
                      'alt': 'json'}
            if start_index > 0:
                params['start-index'] = str(start_index)
                pass
            return self._perform_v2_request(method='GET', path='feeds/api/users/default/newsubscriptionvideos',
                                            params=params)
    i think this here

    feeds/api/users/default/newsubscriptionvideos

    might be the real interesting part...

    as for processing this V2 request i found:

    Code:
        def _perform_v2_request(self, method='GET', headers=None, path=None, post_data=None, params=None,
                                allow_redirects=True):
            # params
            if not params:
                params = {}
                pass
            _params = {'key': self._config['key']}
            _params.update(params)
    
            # headers
            if not headers:
                headers = {}
                pass
            _headers = {'Host': 'gdata.youtube.com',
                        'X-GData-Key': 'key=%s' % self._config['key'],
                        'GData-Version': '2.1',
                        'Accept-Encoding': 'gzip, deflate',
                        'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.36 Safari/537.36'}
            if self._access_token:
                _headers['Authorization'] = 'Bearer %s' % self._access_token
                pass
            _headers.update(headers)
    
            # url
            url = 'https://gdata.youtube.com/%s/' % path.strip('/')
    
            result = None
            if method == 'GET':
                result = requests.get(url, params=_params, headers=_headers, verify=False, allow_redirects=allow_redirects)
                pass
    
            if result is None:
                return {}
    
            if method != 'DELETE' and result.text:
                return result.json()
            pass
    even though it's denoted as being a V2 api call (probably...) it actually works a treat on my current kodi installation where i also copied these code snippets from. maybe thats of any help, as i'd love to have the new videos back - as i am losing track of all my subscriptions... :)

    and once again thanks for the nice plugin and all the efforts!

    Regards

    Axel
     
    Last edited:

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,982
    3,703
    Stuttgart
    Germany Germany
    Country flag
    [05-08 17:15:12,727] [MPMain ] [INFO ] Updater loading Sites Overview from Webservice
    [05-08 17:15:12,739] [MPMain ] [WARN ] Error on getting sites overview from server: System.Net.WebException: Fehler bei der Anforderung mit HTTP-Status 417: Expectation failed.
    You are not getting the updated sites, there'S an error accessing the global webservice. There is something in your network setup preventing this, like a proxy, firewall, ...

    i think this here

    feeds/api/users/default/newsubscriptionvideos

    might be the real interesting part...
    I know that the v2 API still works (at least to some points), but google has anounced that it will be shut down gradually to completly. So I'd rather see some way to get this from the V3 API.
    Also mixing v2 and v3 requires two types of authorization and a lot more diffculty to maintain for me on the code site.
    Only thing I could offer is to restore the old YouTube site as well (as Youtube_OLD or something)
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    3,740
    1,981
    Nuenen
    Netherlands Netherlands
    Country flag
    Still no solution to my problem? (Could not load type 'System.IProgress`1')

    Edit: Found it. Just install .NET Framework 4.5.2 and it works again
     
    Last edited:

    Users who are viewing this thread

    Similar threads

    Top Bottom