Closed Wikinaut closed 7 years ago
as written in #63 downloading things won't be implemented soon but "scapping" the "Filmliste" for displaying seems interesting.
Is the link static ? or does it changes from release to release?
@raptor2101 wrote
Is the link static ? or does it changes from release to release?
I don't know. Perhaps @xaverW can answer ?
crossposted: @raptor2101 the youtube-dl Addon can download in the background!
This is the source:
Description: http://kodi.wiki/view/Add-on:Youtube-dl_Control
It takes arbitrary stream urls, not only Youtube-Urls. I use this already to download "Tatort" or so.
ask em ;)
@raptor2101 I asked him.
whitch URL?
Url der "Filmliste" (json).
@raptor2101 The urls of servers holding the Filmliste appears to be in http://zdfmediathk.sourceforge.net/akt.xml .
planed is nothing BUT: this is for the program and when it needs changes, then I would change it.
@xaverW As long as you have no problem that third party apps uses this file everything is fine ... if you change the link I will adoptthe change. My purpose of the question was to prevent a "cat an mice" game ;)
@raptor2101 Problem with your Mediathek App ? I was looking for "Geierabend 2016" which has http://www1.wdr.de/mediathek/video/sendungen/comedy/videogeierabend102.html in the WDR Mediathek, and found, that WDR Mediathek is not part of your Mediathek App.
Why is WDR Mediathek not listed ?
I would really prefer you make all available video of the "Filmliste" (as mentioned in my initial post above https://github.com/raptor2101/Mediathek/issues/67#issue-128563023 ) searchable in your Mediathek App, and then playable.
@raptor2101 or use his "feed" list http://linkeddata.mro.name/open/tv/mediathek/ardmediathek.de/series/index.opml
So many questions ... I skipped WDR support a while ago. At this WDR changes their front-end very frequently and uses ways to "protect" their content in a way, that make it perfectly clear, they don't want to be crawled by a third party tool. Additional most content was available within the ARD mediathek, so i focused on this part... A fragment of the original scrapper is still shipped with the addon but disabled, used at your own risk.
Additional I looked how to implement your request. Thinks get very suspicious... if I get it right these opml.file (mirrored ...) only overs a direct link to the series-pages hosted by ARD. Once get this page, the video-link has to be extracted as already implemented in the ard.py file.
Some random samples shows that most of the content is already scrapped by the ard.py. what is exactly the content found in this opml wich is not scrapped by the ard-plugin?
maybe a small change in the scrapper solves these problem....
@raptor2101 tja, basically I thought, that it might be quite easy to "convert" presented texts (titles) and urls (stream links) into a searchable and clickable list in your add-on. Once I have learned how this can be done, I certainly can help to fetch (to include) more links, e.g. the "Filmliste" of MediathekView.
@raptor2101 let me know, how I can help with a bitcoin donation to you.
It's not about money. I'am doing this for fun ...
If i get you right, you are missing the search functionality? Using the "Filmliste" doesn't help here, because to search something Kodi has to load all linked source-sides and do a brute force search.
Using ARD base search for this looks more promising ... I will look into this this week ... if my time isn't consumed by my family or xcom2 ... :D
@raptor2101 why do you want to load all linked source-sides ? The Filmliste has all the meta information, e.g.
"X" : [ "", "", "Nuhr im Ersten © RBB", "24.01.2016", "21:00:00", "00:45:27", "796", "Scharfzüngig und anspruchsvoll, bissig und hintergründig, unterhaltsam und witzig - Kabarett und Comedy treffen sich bei \"Nuhr im Ersten - Der Satire Gipfel\".", "http://nrodl.zdf.de/none/3sat/16/01/160124_nuhrimersten_ard_2328k_p35v12.mp4", "http://www.3sat.de/mediathek/?mode=play&obj=56550", "", "", "60|436k_p9v12.mp4", "", "60|3328k_p36v12.mp4", "", "1453665600", "", "", "false" ],
Use grep or my agrep (for fuzzy searching) the title in the json object. E.g. when the user entered "Nuhr" the example above is one of the results. Then present the user the available formats, and "fire" the playing!
@raptor2101 wrote
Using the "Filmliste" doesn't help here, because to search something Kodi has to load all linked source-sides and do a brute force search.
I don't know the details of KODI, but what I suggest is to write a script (new addon, nom de guerre: "Filmliste Addon") which does:
Where exactly is the problem ?
Ok now i,am a little confused. The direct link you posted contains an xml leading to an index of the whole Ard mediathek.
Where you get the json from?
This script https://github.com/Skeeve/Mediathek-3.3-Filmliste/blob/master/filmliste_laden explains it all.
First, fetch the "server list" (list of mirrors of the current filmliste). Then try to fetch (by random selection) one of the mirrors, until you can download one copy of the Filmlist.
Then extract...
Sometimes I'am blind ...
If I'am getting it right, this is a "full" index of all videos currently available ...
Loading the file, uncompress em within python (without external tools) will be the first task.
Parsing the file into chunks, usable and searchable (from within Kodi) is the interesting part. the current mediathek addon isn't prepared for that kind of "pre-processing/caching" so I will create a new Addon
I will post a preview as soon as I have something to show ...
@raptor2101 wrote
Sometimes I'am blind ... If I'am getting it right, this is a "full" index of all videos currently available ...
I am happy to see that you've got it, that it looks relatively easy to code. (thanks to @xaverW , the maintainer and main coder of the great MediathekView, whose "Filmliste" is the big "thing" here, and perhaps of big help.)
@raptor2101 Now, where MediathekView has a new team (see https://mediathekview.de/ ), I want to kindly ask whether we can resume our discussion, and perhaps coding, to write a "new" MediathekView Video Addon, which - as described above - makes use of the prefetched list of available recordings (today: more than 172.000).
As a starting point, a simple full text search function would be fine as basic interface, which then needs to "simply" play the attached stream url (perhaps with an additional selection of the stream quality HD, HQ or SD).
NEW: https://github.com/bagbag/mediathekviewweb is a new web interface which access the whole mediathekview database. Can be used as a blueprint to develop a similar KODI AddOn, as requested in this issue.
will look into this as soon as i have time. i'am currently heavily consumed by my job. will report back as soon as possible
Implementation under progress here:
So i can close this one
@raptor2101 hm, yes. When filing this issue, I wanted (wished) you were adapting your plugin to use the filmliste, but the new work - I haven't used it yet - appears to do this. So closing is fine for now.
@Wikinaut as you might notice, my response-time is rather slow ... since one year, i'am really occupied by my job. Because this is heavily related to "coding", coding at home isn't the right method to get the head clear. As soon as my Addon-functionality is fully covered by the other Addon, I will close this one ...
UPDATE 20170419: This idea is now implemented in an independent plugin: https://github.com/YggdrasiI/plugin.video.simple_mediathek_de
I suggest to add a new "pseudo station" to Mediathek AddOn which fetches the Filmliste of MediathekView and allows to search that list, and to select movies for viewing and downloading.
See also https://github.com/raptor2101/Mediathek/issues/55#issuecomment-174413573 and https://github.com/xaverW/MediathekView/issues/60 (corresponding issue on MediathekView "[Suggestion] Add MediathekView as Addon for OSMC/KODI").
Here's an edited excerpt of the Filmliste: