*.edl files are ignored if xbmcplugin.SetResolvedUrl is used - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: *.edl files are ignored if xbmcplugin.SetResolvedUrl is used (/showthread.php?tid=369426) |
*.edl files are ignored if xbmcplugin.SetResolvedUrl is used - MarkusEh - 2022-08-28 Hi, My folder structure is something like: /myFolder/00001.ts /myFolder/00001.edl If my plugin plays 00001.ts directly like: Quote:xbmcplugin.addDirectoryItem(handle=addon_handle, url="/myFolder/00001.ts",it works perfectly, and /myFolder/00001.edl is used to skip the advertisements . But, if I use setResolvedUrl like here: Quote:li = xbmcgui.ListItem()The video also plays, but /myFolder/00001.edl is completely ignored. Can I change something, so *.edl files are also used if xbmcplugin.setResolvedUrl is used? If not: Can I make a development request to the KODI team, and ask to also use take into account *.edl files if xbmcplugin.setResolvedUrl is used? ~ Markus RE: *.edl files are ignored if xbmcplugin.SetResolvedUrl is used - enen92 - 2022-09-05 I cannot reproduce this. It's working for me regardless of using setResolvedUrl:
Note that Kodi edl uses the dynpath (dynamic path) of the item, so even if you are playing a plugin:// path, when the execution flow reaches this point the returned url is the actual path of the item (/home/arch/Videos/testeedl/TEST.mpg in my case): RE: *.edl files are ignored if xbmcplugin.SetResolvedUrl is used - MarkusEh - 2022-09-06 Thank you! I re-tested, and for simple file paths like "/myFolder/00001.ts" it works . But, if I have something like: "stack:///myFolder/00001.ts" it still does not work, if "stack:///myFolder/00001.ts" is returned by setResolvedUrl . ~ Markus RE: *.edl files are ignored if xbmcplugin.SetResolvedUrl is used - enen92 - 2022-09-07 It should work for all paths in your hard drive (HD) or lan (e.g. nfs/smb), won't work for http paths. For stacks it should also work but it comes down to what URI types are in your stack. i.e. if you have a stack of plugin paths it won't work because the plugin paths are not resolved at that point in time. But if you have a stack of hd files it'll work (e.g. stack://mydiscfile1.ts,mydiscfile2.ts). RE: *.edl files are ignored if xbmcplugin.SetResolvedUrl is used - MarkusEh - 2022-09-08 Hi, Can you please test with: liz.setPath("stack:///home/arch/Videos/testeedl/TEST.mpg") I tested, and for me it did not work with the stack:// protocol. Thanks for your help, Markus RE: *.edl files are ignored if xbmcplugin.SetResolvedUrl is used - enen92 - 2022-09-08 Yeap I can confirm that does not work. Also spent a bit of time debugging this and adding support for stacks in edl in the code is not trivial... RE: *.edl files are ignored if xbmcplugin.SetResolvedUrl is used - MarkusEh - 2022-09-10 Hi, Thank you for checking. If I use it in my video plugin like: Quote: xbmcplugin.addDirectoryItem(handle=addon_handle, url="stack::///myFolder/00001.ts",it works perfectly. Would it be possible to implement it in the same way in "setResolvedUrl"? ~ Markus |