• 1
  • 25
  • 26
  • 27
  • 28
  • 29(current)
[RELEASE] DailyMotion.com - Movies, TV, Music, User-Clips, 3D and Livestreams
(2024-11-05, 04:05)granate Wrote: Thanks for the patch file - playback works but download does not.

Yes. It is expected as Dailymotion are no longer presenting MP4 and switched to HLS completely. That is why playback was broken. The side effect is that you cannot download anymore as they are using HLS. You may have to use something like youtube-dl that can download the individual transport segments in the HLS file and stitch them together to make up the MP4 file
Kodi 22 nightly Windows 10 | 21.2 Xbox One X | 22 nightly Linux Mint Xia XFCE | CoreELEC NO 22 nightly S905X4 aarch64
Reply
(2024-11-05, 12:37)gujal Wrote:
(2024-11-05, 04:05)granate Wrote: Thanks for the patch file - playback works but download does not.

Yes. It is expected as Dailymotion are no longer presenting MP4 and switched to HLS completely. That is why playback was broken. The side effect is that you cannot download anymore as they are using HLS. You may have to use something like youtube-dl that can download the individual transport segments in the HLS file and stitch them together to make up the MP4 file

Thanks for the patch. Neverthless, even with it I get the following error.  (Seems to have smth. to do with subtitles?)


code:
2024-11-29 16:52:15.416 T:1491    error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
            - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
           Error Type: <class 'ValueError'>
           Error Contents: invalid literal for int() with base 10: 'English'
           Traceback (most recent call last):
             File "/storage/.kodi/addons/plugin.video.dailymotion_com/default.py", line 18, in <module>
               from resources.lib import dailymotion
             File "/storage/.kodi/addons/plugin.video.dailymotion_com/resources/lib/dailymotion.py", line 837, in <module>
               playVideo(url)
             File "/storage/.kodi/addons/plugin.video.dailymotion_com/resources/lib/dailymotion.py", line 351, in playVideo
               url = getStreamUrl(vid)
                     ^^^^^^^^^^^^^^^^^
             File "/storage/.kodi/addons/plugin.video.dailymotion_com/resources/lib/dailymotion.py", line 413, in getStreamUrl
               mb = sorted(mb, key=s, reverse=True)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
             File "/storage/.kodi/addons/plugin.video.dailymotion_com/resources/lib/dailymotion.py", line 375, in s
               return int(elem[0].split("@")[0])
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
           ValueError: invalid literal for int() with base 10: 'English'
           -->End of Python script error report<--
2024-11-29 16:52:15.561 T:1095    error <general>: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.dailymotion_com/?url=x8y5e30&mode=playVideo]
Reply
(2024-11-30, 16:43)ko56 Wrote: Thanks for the patch. Neverthless, even with it I get the following error.  (Seems to have smth. to do with subtitles?)

Log snippets are not helpful. Next time, please provide full unedited debug log (debug in kodi settings enabled)
Okay I can see what you were trying to access in the log url=x8y5e30&mode=playVideo

if you can replace line 412 in dailymotion.py with this, test and report back
Code:
mb = re.findall(r'NAME="(\d+)".*\n([^\n]+)', mbtext)
Kodi 22 nightly Windows 10 | 21.2 Xbox One X | 22 nightly Linux Mint Xia XFCE | CoreELEC NO 22 nightly S905X4 aarch64
Reply
That fixes the problem. Thanks very much.
Reply
  • 1
  • 25
  • 26
  • 27
  • 28
  • 29(current)

Logout Mark Read Team Forum Stats Members Help
[RELEASE] DailyMotion.com - Movies, TV, Music, User-Clips, 3D and Livestreams10