Really loooong urls (1 Viewer)

Brownard

Development Group
  • Team MediaPortal
  • March 21, 2007
    2,305
    1,884
    Home Country
    United Kingdom United Kingdom
    @offbyone @morpheus_xx (sorry to tag you again).

    iPlayer urls are longer than the 4000 character limit in OnlineVideoAspect.ATTR_LONGURL so are getting truncated. As far as I can tell there's nothing particularly strange about the url creation. The offending code is here.

    Thanks

    Example url:
    Code:
    rtmp://vod-rtmp-uk-live.edgesuite.net####AAEAAAD/////AQAAAAAAAAAMAgAAAENPbmxpbmVWaWRlb3MsIFZlcnNpb249Mi4zLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1udWxsDAMAAABJU3lzdGVtLCBWZXJzaW9uPTQuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49Yjc3YTVjNTYxOTM0ZTA4OQUBAAAAJk9ubGluZVZpZGVvcy5NUFVybFNvdXJjZUZpbHRlci5SdG1wVXJsIQAAABVvcGVuQ29ubmVjdGlvblRpbWVvdXQXb3BlbkNvbm5lY3Rpb25TbGVlcFRpbWUcdG90YWxSZW9wZW5Db25uZWN0aW9uVGltZW91dA1hcmJpdHJhcnlEYXRhFDxBcHA+a19fQmFja2luZ0ZpZWxkFjxUY1VybD5rX19CYWNraW5nRmllbGQYPFBhZ2VVcmw+a19fQmFja2luZ0ZpZWxkFzxTd2ZVcmw+a19fQmFja2luZ0ZpZWxkHTxGbGFzaFZlcnNpb24+a19fQmFja2luZ0ZpZWxkFTxBdXRoPmtfX0JhY2tpbmdGaWVsZBk8UGxheVBhdGg+a19fQmFja2luZ0ZpZWxkGTxQbGF5bGlzdD5rX19CYWNraW5nRmllbGQVPExpdmU+a19fQmFja2luZ0ZpZWxkGjxTdWJzY3JpYmU+a19fQmFja2luZ0ZpZWxkFjxTdGFydD5rX19CYWNraW5nRmllbGQVPFN0b3A+a19fQmFja2luZ0ZpZWxkGzxCdWZmZXJUaW1lPmtfX0JhY2tpbmdGaWVsZ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VWaWRlb3MsIFZlcnNpb249Mi4zLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1udWxsXV0DAAAABl9pdGVtcwVfc2l6ZQhfdmVyc2lvbgQAADJPbmxpbmVWaWRlb3MuTVBVcmxTb3VyY2VGaWx0ZXIuUnRtcEFyYml0cmFyeURhdGFbXQIAAAAICAkMAAAAAAAAAAAAAAAHDAAAAAABAAAAAAAAAAQwT25saW5lVmlkZW9zLk1QVXJsU291cmNlRmlsdGVyLlJ0bXBBcmJpdHJhcnlEYXRhAgAAAAs=
     
    Last edited:

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    I'd like to tag @georgius to clear up why those Urls get so long.

    On another note: I thought we wanted to add a new attribute for OnlineVideos to get around the cutting of in MP2 completely? Our urls don't go into a database so no need force them to only 4000 chars?
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    On another note: I thought we wanted to add a new attribute for OnlineVideos to get around the cutting of in MP2 completely?
    I've checked this again: even though we don't fill this aspects by our extractors, it must be registered at the MediaLibrary. This involves creation of a database table.

    For SQLite it would be no problem to extend to much more length, because it internally handles every character column as "TEXT" type, which is "unrestricted". When we want to stay compatible with MySQL / SQLCE than we need to check at least their limits.
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    When decoding this url, the result is suprising (at least to me):
    Code:
    ��������������COnlineVideos, Version=2.3.0.0, Culture=neutral, PublicKeyToken=null���ISystem, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089���&OnlineVideos.MPUrlSourceFilter.RtmpUrl!���openConnectionTimeoutopenConnectionSleepTimetotalReopenConnectionTimeout
    arbitraryData<App>k__BackingField<TcUrl>k__BackingField<PageUrl>k__BackingField<SwfUrl>k__BackingField<FlashVersion>k__BackingField<Auth>k__BackingField<PlayPath>k__BackingField<Playlist>k__BackingField<Live>k__BackingField<Subscribe>k__BackingField<Start>k__BackingField<Stop>k__BackingField<BufferTime>k__BackingField<Token>k__BackingField<Jtv>k__BackingField<SwfVerify>k__BackingField<SwfAge>k__BackingField
    SimpleUrl+uriSimpleUrl+verbositySimpleUrl+networkInterfaceSimpleUrl+cacheFolderSimpleUrl+maximumLogSizeSimpleUrl+maximumPluginsSimpleUrl+liveStream0SimpleUrl+<DumpProtocolInputData>k__BackingField1SimpleUrl+<DumpProtocolOutputData>k__BackingField.SimpleUrl+<DumpParserInputData>k__BackingField/SimpleUrl+<DumpParserOutputData>k__BackingField,SimpleUrl+<DumpOutputPinData>k__BackingField������������������:OnlineVideos.MPUrlSourceFilter.RtmpArbitraryDataCollection���
    System.Uri���+OnlineVideos.MPUrlSourceFilter.LogVerbosity������ N������`��   ���
    
    
    ���[http://www.bbc.co.uk/emp/releases/iplayer/revisions/617463_618125_4/617463_618125_4_emp.swf
    
    ���mp4:secure/3200kbps/modav/bUnknown-5bcb5dee-5f66-4b0a-b4a0-6a7a4fabd229_b08298zg_1477169846213.mp4?auth=daEbZamchbCdIbxbcbKaPbkaObRb8bSdLcQ-byfslJ-bWG-CnnFHoEqJCqFpxI&aifp=v001&slist=secure/800kbps/modav/bUnknown-5bcb5dee-5f66-4b0a-b4a0-6a7a4fabd229_b08298zg_1477169848946.mp4;secure/3200kbps/modav/bUnknown-5bcb5dee-5f66-4b0a-b4a0-6a7a4fabd229_b08298zg_1477169846213.mp4;secure/480kbps/modav/bUnknown-5bcb5dee-5f66-4b0a-b4a0-6a7a4fabd229_b08298zg_1477169848366.mp4;secure/1500kbps/modav/bUnknown-5bcb5dee-5f66-4b0a-b4a0-6a7a4fabd229_b08298zg_1477169841956.mp4��
    0u��
    
    ����   ���+OnlineVideos.MPUrlSourceFilter.LogVerbosity���value__�������   ����     ������������������:OnlineVideos.MPUrlSourceFilter.RtmpArbitraryDataCollection���Collection`1+itemsSystem.Collections.Generic.List`1[[OnlineVideos.MPUrlSourceFilter.RtmpArbitraryData, OnlineVideos, Version=2.3.0.0, Culture=neutral, PublicKeyToken=null]]���   
    ������
    System.Uri���AbsoluteUri������rtmp://vod-rtmp-uk-live.edgesuite.net:1935/ondemand?auth=daEbZamchbCdIbxbcbKaPbkaObRb8bSdLcQ-byfslJ-bWG-CnnFHoEqJCqFpxI&aifp=v001&slist=secure/800kbps/modav/bUnknown-5bcb5dee-5f66-4b0a-b4a0-6a7a4fabd229_b08298zg_1477169848946.mp4;secure/3200kbps/modav/bUnknown-5bcb5dee-5f66-4b0a-b4a0-6a7a4fabd229_b08298zg_1477169846213.mp4;secure/480kbps/modav/bUnknown-5bcb5dee-5f66-4b0a-b4a0-6a7a4fabd229_b08298zg_1477169848366.mp4;secure/1500kbps/modav/bUnknown-5bcb5dee-5f66-4b0a-b4a0-6a7a4fabd229_b08298zg_1477169841956.mp4
    ���System.Collections.Generic.List`1[[OnlineVideos.MPUrlSourceFilter.RtmpArbitraryData, OnlineVideos, Version=2.3.0.0, Culture=neutral, PublicKeyToken=null]]���_items_size_version��2OnlineVideos.MPUrlSourceFilter.RtmpArbitraryData[]���   ����������������������0OnlineVideos.MPUrlSourceFilter.RtmpArbitraryData���
    Besides some character encoding issue, it looks like whole objects are serialized and passed as url parameters?
     

    Brownard

    Development Group
  • Team MediaPortal
  • March 21, 2007
    2,305
    1,884
    Home Country
    United Kingdom United Kingdom
    • Thread starter
    • Moderator
    • #5
    it must be registered at the MediaLibrary. This involves creation of a database table.
    Is this just for deserializing, could we just log it and skip any aspects that aren't registered? Ideally shouldn't we have the ability to be able to specify an aspect as local only to avoid the creation of an unnecessary table?
    As a workaround can the url just be stored in a field in PlaylistItem and the the ResourceLocator populated from that in the GetResourceLocator override?
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Ideally shouldn't we have the ability to be able to specify an aspect as local only to avoid the creation of an unnecessary table?
    Yes, it could be useful to have such option. So this would be a "transient" aspect which is not persisted to DB, but still a registered one. @henso what do you think about this, as you have done quite much on aspect handlng for MIA rework?

    As a workaround can the url just be stored in a field in PlaylistItem and the the ResourceLocator populated from that in the GetResourceLocator override?
    Would also be possible. But I'd like to keep the media item handling as uniform as possible.

    So before deciding any changes, I'd like to hear @georgius ' opinion first.
     

    henso

    Development Group
  • Team MediaPortal
  • February 16, 2012
    2,341
    829
    Home Country
    Denmark Denmark
    as you have done quite much on aspect handlng for MIA rework?
    I think it's doable but I haven't really much experience with aspects and their dependency on the database. Should I try to add it to the MIA rework?
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Let's wait for georgius' answer, maybe there is a better solution
     

    henso

    Development Group
  • Team MediaPortal
  • February 16, 2012
    2,341
    829
    Home Country
    Denmark Denmark
    @morpheus_xx
    I ended up adding transient aspects anyway, because I needed them for transferring data from the MDE to RSE (RelationshipExtractor). Maybe it can be used to solve the problem.
     

    georgius

    Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    654
    Bratislava
    Home Country
    Slovakia Slovakia
    OnlineVideos code for filter uses binary formatter for serialization of filter URL when passing URL from sites to OV player. It can produce long URLs, but this code should be used only in OnlineVideos. Such URL is not playable in filter, it's only internal thing of OnlineVideos. This URL is deserialized in OV player and correct filter URL is created. Anyway, filter URL can be also long, depending on count of parameters and their values.
     

    Users who are viewing this thread

    Top Bottom