Youtube is broken... | Page 2

Discussion in 'OnlineVideos' started by Hes, May 5, 2015.

  1. Remmerboy

    Remmerboy Portal Member

    Joined:
    June 19, 2008
    Messages:
    16
    Likes Received:
    1
    Ratings:
    +2 / 1
    Home Country:
    Denmark Denmark
    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


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. doskabouter
    • Premium Supporter

    doskabouter Community Plugin Dev

    Joined:
    September 27, 2009
    Messages:
    2,826
    Likes Received:
    790
    Location:
    Nuenen
    Ratings:
    +1,158 / 1
    Home Country:
    Netherlands Netherlands
    Show System Specs
    So, should I install .NET 4.5, and it'll work?
     
  4. Shadime
    • Premium Supporter

    Shadime MP Donator

    Joined:
    June 2, 2009
    Messages:
    106
    Likes Received:
    1
    Ratings:
    +5 / 0
    Home Country:
    Australia Australia
    Show System Specs
    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.
     
  5. Frank Laczko

    Frank Laczko Portal Member

    Joined:
    February 3, 2012
    Messages:
    17
    Likes Received:
    0
    Ratings:
    +3 / 0
    I must be missing something here.

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

    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 :)
     
  6. Remmerboy

    Remmerboy Portal Member

    Joined:
    June 19, 2008
    Messages:
    16
    Likes Received:
    1
    Ratings:
    +2 / 1
    Home Country:
    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
     
  7. Frank Laczko

    Frank Laczko Portal Member

    Joined:
    February 3, 2012
    Messages:
    17
    Likes Received:
    0
    Ratings:
    +3 / 0

    AHHH!!! Mucho Danke!!! I was wondering what that setting was.
     
  8. 2102Michael

    2102Michael Portal Member

    Joined:
    December 17, 2010
    Messages:
    22
    Likes Received:
    0
    Ratings:
    +1 / 0
    Home Country:
    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'
     
  9. Herr R aus B
    • Premium Supporter

    Herr R aus B MP Donator

    Joined:
    December 22, 2007
    Messages:
    241
    Likes Received:
    14
    Occupation:
    IT Project Leader
    Location:
    Berlin
    Ratings:
    +15 / 0
    Home Country:
    Germany Germany
    hi

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

    Code (Text):
    1.     def get_uploaded_videos_of_subscriptions(self, start_index=0):
    2.         params = {'max-results': str(self._max_results),
    3.                   'alt': 'json'}
    4.         if start_index > 0:
    5.             params['start-index'] = str(start_index)
    6.             pass
    7.         return self._perform_v2_request(method='GET', path='feeds/api/users/default/newsubscriptionvideos',
    8.                                         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 (Text):
    1.     def _perform_v2_request(self, method='GET', headers=None, path=None, post_data=None, params=None,
    2.                             allow_redirects=True):
    3.         # params
    4.         if not params:
    5.             params = {}
    6.             pass
    7.         _params = {'key': self._config['key']}
    8.         _params.update(params)
    9.  
    10.         # headers
    11.         if not headers:
    12.             headers = {}
    13.             pass
    14.         _headers = {'Host': 'gdata.youtube.com',
    15.                     'X-GData-Key': 'key=%s' % self._config['key'],
    16.                     'GData-Version': '2.1',
    17.                     'Accept-Encoding': 'gzip, deflate',
    18.                     'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.36 Safari/537.36'}
    19.         if self._access_token:
    20.             _headers['Authorization'] = 'Bearer %s' % self._access_token
    21.             pass
    22.         _headers.update(headers)
    23.  
    24.         # url
    25.         url = 'https://gdata.youtube.com/%s/' % path.strip('/')
    26.  
    27.         result = None
    28.         if method == 'GET':
    29.             result = requests.get(url, params=_params, headers=_headers, verify=False, allow_redirects=allow_redirects)
    30.             pass
    31.  
    32.         if result is None:
    33.             return {}
    34.  
    35.         if method != 'DELETE' and result.text:
    36.             return result.json()
    37.         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: May 8, 2015
    • Like Like x 1
  10. offbyone
    • Team MediaPortal

    offbyone Development Group

    Joined:
    April 26, 2008
    Messages:
    3,981
    Likes Received:
    2,704
    Gender:
    Male
    Location:
    Stuttgart
    Ratings:
    +3,303 / 3
    Home Country:
    Germany Germany
    Show System Specs
    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 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)
     
    • Like Like x 1
  11. doskabouter
    • Premium Supporter

    doskabouter Community Plugin Dev

    Joined:
    September 27, 2009
    Messages:
    2,826
    Likes Received:
    790
    Location:
    Nuenen
    Ratings:
    +1,158 / 1
    Home Country:
    Netherlands Netherlands
    Show System Specs
    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: May 8, 2015
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!