•   
  • 1
  • 3
  • 4
  • 5
  • 6(current)
  • 7
  •   
Release DMAX Italia video addon
#76
(2016-01-06, 09:25)boggiano Wrote:
(2015-12-23, 13:51)fullspeed Wrote: you can set an overall speed limit on internet connection in system properties and this affects also dplay plugin.

I've tested on my own: I've set a 2mbps speed limit and dplay now streams SD instead of HD.

Where do you set this?
Also, don't have any downside in other part of the system? (I have a full 5mbps)
it's called Internet Connection Bandwidth Limitation. Since it's a system setting it affects *all* internet traffic to/from your kodi device.

Image
Reply
#77
(2015-09-24, 09:05)Vektor Wrote: I've made something, but I don't have time and will to keep it up to date, so I'm giving my code hoping you'll be able to keep it updated.
I hope it's good enough: I learnt how to make plugins and coded this plugin in just one evening, forgive my mistakes if there's any.

What's missing:
  • Settings
  • Cache
  • Multi-language
  • Better video metadata

I named the plugin plugin.video.dplay

icon.png
Image

addon.py: http://pastebin.com/CZf3JbE6
addon.xml: http://pastebin.com/Y1EvG16Y


Some screenshots here.

Hi Vektor,

first thanks a lot for your work. It's very appreciated by me and by the community. While I try to play something I experience several freezing in the stream. What do you think could be?

EDIT: I also tried setting a bandwitdh limit at 2Mbps as per previous reply

Code:
14:12:20 508.681458 T:1958105648 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
14:12:20 508.682678 T:1603789856  NOTICE: Thread DVDPlayer start, auto delete: false
14:12:20 508.683319 T:1603789856  NOTICE: Creating InputStream
14:12:26 513.933716 T:1746211872  NOTICE: Thread FileCache start, auto delete: false
14:12:26 513.941040 T:1603789856  NOTICE: Creating Demuxer
14:12:26 513.942383 T:1603789856   ERROR: CCurlFile::GetCookies - invalid cookie: 'www.mymovies.it      FALSE   /       FALSE   1455145200      chats%2Emymovies%2Eit   '
14:12:40 528.435547 T:1603789856  NOTICE: Opening stream: 0 source: 256
14:12:40 528.470398 T:1603789856  NOTICE: Creating video codec with codec id: 28
14:12:40 528.484314 T:1603789856  NOTICE: Creating video thread
14:12:40 528.484802 T:1712841760  NOTICE: Thread RefClock start, auto delete: false
14:12:40 528.485168 T:1603789856  NOTICE: Opening stream: 1 source: 256
14:12:40 528.485413 T:1603789856  NOTICE: Finding audio codec for: 86018
14:12:40 528.485657 T:1577440288  NOTICE: Thread DVDPlayerVideo start, auto delete: false
14:12:40 528.486145 T:1577440288  NOTICE: running thread: video_thread
14:12:40 528.497375 T:1603789856  NOTICE: Creating audio thread
14:12:40 528.498230 T:1556288544  NOTICE: Thread DVDPlayerAudio start, auto delete: false
14:12:40 528.498413 T:1556288544  NOTICE: running thread: CDVDPlayerAudio::Process()
14:12:40 528.501465 T:1556288544  NOTICE: Creating audio stream (codec id: 86018, channels: 2, sample rate: 48000, no pass-through)
14:12:40 528.503113 T:1556288544  NOTICE: CDVDPlayerAudio::OutputPacket duplicate 4 packets of duration 21
14:12:40 528.555115 T:1577440288  NOTICE:  fps: 25.000000, pwidth: 1920, pheight: 1080, dwidth: 1920, dheight: 1080
14:12:40 528.555664 T:1577440288  NOTICE: Display resolution DESKTOP : 1920x1080 (1920x1080) @ 60.00 - Full Screen (16)
14:12:40 528.558472 T:1556288544  NOTICE: CDVDPlayerAudio::OutputPacket duplicate 4 packets of duration 21
14:12:40 528.636841 T:1556288544  NOTICE: Previous line repeats 1 times.
14:12:40 528.637024 T:1556288544  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 21
14:12:40 528.638794 T:1556288544  NOTICE: CDVDPlayerAudio::OutputPacket duplicate 1 packets of duration 21
14:13:05 553.242371 T:1556288544  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 21
14:14:38 645.871338 T:1556288544  NOTICE: Previous line repeats 288 times.
14:14:38 645.872131 T:1556288544  NOTICE: CDVDPlayerAudio::OutputPacket duplicate 4 packets of duration 21
14:14:38 645.964172 T:1556288544  NOTICE: Previous line repeats 3 times.
14:14:38 645.965454 T:1556288544  NOTICE: CDVDPlayerAudio::OutputPacket duplicate 3 packets of duration 21
14:15:01 668.777588 T:1603789856 WARNING: error while seeking
14:15:02 670.502686 T:1556288544 WARNING: Previous line repeats 1 times.
14:15:02 670.503174 T:1556288544  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 21
14:15:02 670.504028 T:1556288544  NOTICE: CDVDPlayerAudio::OutputPacket duplicate 4 packets of duration 21
14:15:02 670.562134 T:1556288544  NOTICE: Previous line repeats 3 times.
14:15:02 670.562378 T:1556288544  NOTICE: CDVDPlayerAudio::OutputPacket duplicate 1 packets of duration 21
14:15:23 691.182007 T:1556288544  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 21
14:16:14 741.950623 T:1556288544  NOTICE: Previous line repeats 115 times.
14:16:14 741.950867 T:1556288544  NOTICE: CDVDPlayerAudio::OutputPacket duplicate 4 packets of duration 21
14:16:14 742.028503 T:1556288544  NOTICE: Previous line repeats 3 times.
14:16:14 742.029419 T:1556288544  NOTICE: CDVDPlayerAudio::OutputPacket duplicate 1 packets of duration 21
14:16:38 766.558533 T:1556288544  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 21
14:16:38 766.560486 T:1556288544  NOTICE: CDVDPlayerAudio::OutputPacket duplicate 4 packets of duration 21
14:16:38 766.627869 T:1556288544  NOTICE: Previous line repeats 3 times.
14:16:38 766.628113 T:1556288544  NOTICE: CDVDPlayerAudio::OutputPacket duplicate 3 packets of duration 21
14:17:43 831.683350 T:1603789856  NOTICE: CDVDPlayer::OnExit()
14:17:43 831.688354 T:1603789856  NOTICE: DVDPlayer: eof, waiting for queues to empty
14:17:43 831.688965 T:1603789856  NOTICE: Closing stream player 1
14:17:43 831.689392 T:1603789856  NOTICE: CDVDMessageQueue(audio)::WaitUntilEmpty
14:17:43 831.689880 T:1603789856  NOTICE: Waiting for audio thread to exit
14:17:43 831.690491 T:1556288544  NOTICE: thread end: CDVDPlayerAudio::OnExit()
14:17:43 831.690979 T:1603789856  NOTICE: Closing audio device
14:17:44 831.773560 T:1603789856  NOTICE: Deleting audio codec
14:17:44 831.774597 T:1603789856  NOTICE: Closing stream player 2
14:17:44 831.775208 T:1603789856  NOTICE: CDVDMessageQueue(video)::WaitUntilEmpty
14:17:44 831.794434 T:1603789856  NOTICE: waiting for video thread to exit
14:17:44 831.795288 T:1577440288   ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true
14:17:44 831.795410 T:1577440288  NOTICE: thread end: video_thread
14:17:44 831.795959 T:1603789856  NOTICE: deleting video codec
14:17:44 831.906128 T:1603789856  NOTICE: Thread BackgroundLoader start, auto delete: false
14:17:44 831.937561 T:1958105648  NOTICE: CDVDPlayer::CloseFile()
14:17:44 831.937805 T:1958105648  NOTICE: DVDPlayer: waiting for threads to exit
14:17:44 831.937927 T:1958105648  NOTICE: DVDPlayer: finished waiting
14:17:44 831.948181 T:1958105648  NOTICE: CDVDPlayer::CloseFile()
14:17:44 831.948364 T:1958105648  NOTICE: DVDPlayer: waiting for threads to exit
14:17:44 831.948425 T:1958105648  NOTICE: DVDPlayer: finished waiting
14:17:44 832.027161 T:1603789856  NOTICE: Thread JobWorker start, auto delete: true
Reply
#78
Hello, I'm new in the Kodi forum.
I have read this thread and I have improved (I think) the code written by Vektor.
I have posted my code as an addon on github, if you wanna try it you have to download two zip files:
- https://github.com/NeverWise/script.modu...master.zip
- https://github.com/NeverWise/plugin.vide...master.zip

In the next future I want to commit it in the official Kodi repository, for now let me know what you think.

;-)
Reply
#79
Hi NeverWise, you are new in the forum but you are a skilled coder. I use often your plugin and I'm going to take a look at your improvements so I can test and report back.
Peppe
Reply
#80
cool, it looks good.
just sometimes at first run it take a bit of time to load the list of series.
maybe because there are lots of items to index and sometimes it search to refresh icons.
Peppe
Reply
#81
Thank you Peppe.
I know the problem that you have described. It's because sometime the Dplay server response is slow.
Reply
#82
(2016-01-31, 15:32)NeverWise Wrote: Hello, I'm new in the Kodi forum.
I have read this thread and I have improved (I think) the code written by Vektor.
I have posted my code as an addon on github, if you wanna try it you have to download two zip files:
- https://github.com/NeverWise/script.modu...master.zip
- https://github.com/NeverWise/plugin.vide...master.zip

In the next future I want to commit it in the official Kodi repository, for now let me know what you think.

;-)

Thank you very much for this, it's very appreciated.

Just a little feedback, quite often the video freezes and then resumes. I am using the default config to keep low the bitrate (576p) but I was wondering if would be possible to enhance the caching mechanism.
Reply
#83
(2016-02-02, 21:58)ElGianni Wrote:
(2016-01-31, 15:32)NeverWise Wrote: Hello, I'm new in the Kodi forum.
I have read this thread and I have improved (I think) the code written by Vektor.
I have posted my code as an addon on github, if you wanna try it you have to download two zip files:
- https://github.com/NeverWise/script.modu...master.zip
- https://github.com/NeverWise/plugin.vide...master.zip

In the next future I want to commit it in the official Kodi repository, for now let me know what you think.

;-)

Thank you very much for this, it's very appreciated.

Just a little feedback, quite often the video freezes and then resumes. I am using the default config to keep low the bitrate (576p) but I was wondering if would be possible to enhance the caching mechanism.

I don't know if I understand your problem, but in the addon settings you can set lower quality (es. 432p).

The cache is managed by Kodi, I don't think that I can "say" Kodi download more data to improve caching. I think Kodi do some calculations based on your Internet connection, and then stores the required data in the cache.
Reply
#84
for the cache maybe this can help.
Reply
#85
Exactly! The link you reported explain how to change cache of Kodi that influences all the addons.
Reply
#86
Thanks for the resource. I will try it and let you know.
Reply
#87
Hi all! Wink

Dmax addon don't work in my Kodi installation. Sad

This is my log:
Code:
13:59:44 T:18446744071977247616  NOTICE: -->Python Interpreter Initialized<--
13:59:44 T:18446744071977247616  NOTICE: Load: http://www.dmax.it/video/programmi/
13:59:46 T:18446744071977247616   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.AttributeError'>
                                            Error Contents: 'NoneType' object has no attribute 'find'
                                            Traceback (most recent call last):
                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.dmaxitalia/default.py", line 161, in <module>
                                                getShows()
                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.dmaxitalia/default.py", line 58, in getShows
                                                show_title = featured_show.find('h3').string
                                            AttributeError: 'NoneType' object has no attribute 'find'
                                            -->End of Python script error report<--
13:59:46 T:18446744072443956736   ERROR: static bool XFILE::CDirectory::GetDirectory(const CURL&, CFileItemList&, const XFILE::CDirectory::CHints&, bool) - Error getting plugin://plugin.video.dmaxitalia/
13:59:46 T:18446744072443956736   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.dmaxitalia/) failed

Can you help me?
Reply
#88
Can I suggest you to strip out the 0 episode shows ?

Code:
if episodes != '0':
            
            title = Util.getTranslation(30009).format(show = show['title'], number = episodes)
            img = show['image_data']
            li = Util.createListItem(title, thumbnailImage = self._getImage(img), streamtype = 'video', infolabels = { 'title' : title, 'plot' : show['description'] })
            xbmcplugin.addDirectoryItem(self._handle, Util.formatUrl({ 'action' : 's', 'showid' : show['id'] }), li, True)
Reply
#89
Absolutly! It was already my intention to put a setting in order to remove them.

(2016-02-22, 00:33)boggiano Wrote: Can I suggest you to strip out the 0 episode shows ?

Code:
if episodes != '0':
            
            title = Util.getTranslation(30009).format(show = show['title'], number = episodes)
            img = show['image_data']
            li = Util.createListItem(title, thumbnailImage = self._getImage(img), streamtype = 'video', infolabels = { 'title' : title, 'plot' : show['description'] })
            xbmcplugin.addDirectoryItem(self._handle, Util.formatUrl({ 'action' : 's', 'showid' : show['id'] }), li, True)
Reply
#90
(2016-01-31, 15:32)NeverWise Wrote: Hello, I'm new in the Kodi forum.
I have read this thread and I have improved (I think) the code written by Vektor.

I confirm you that your plugin working better than the Vektor one.
Works smoothly on my x64 Kodibuntu but freezes my Raspb1 (Openelec): the problem starting from the navigation menu that is is very very slow. I mean, when i push down button on my remote (for example) I have to wait for 10-15 second before the plugin highlight the underlying Dplay program.
Also when I exit from your plugin, the Raspi continues going slowly and I have to restart it. Maybe the script?

I very appreciate your work because i think that on-demands means freedom. I cannot thinking another way to watch TV.
Reply
  •   
  • 1
  • 3
  • 4
  • 5
  • 6(current)
  • 7
  •   



Logout Mark Read Team Forum Stats Members Help
DMAX Italia video addon3
This forum uses Lukasz Tkacz MyBB addons.