garybuhrmaster / tv_grab_zz_sdjson_sqlite

XMLTV grabber for Schedules Direct JSON service
GNU General Public License v2.0
6 stars 8 forks source link

Missing programme images? #14

Closed gelsas closed 5 years ago

gelsas commented 5 years ago

Hello,

Not sure if this is the right place to ask but right now the script is not pulling the avaiable images for the programmes

for example for this "programme" there are images which can be pulled from schedulesdirect (see below)

<programme channel="I101423.json.schedulesdirect.org" start="20190331002000 +0000" stop="20190331005500 +0000">
  <title>Eastbound &amp; Down</title>
  <sub-title>Schaeffers Plantage</sub-title>
  <desc lang="de">Kenny kapiert, dass April ihn mit seinem Sohn sitzen gelassen hat. Der Baseballer weiß nichts mit dem Einjährigen anzufangen und überlegt, Toby in einem Weidenkörbchen dem Fluss zu übergeben. Dann fällt ihm aber sein Bruder ein. Doch der verweigert die Aufnahme seines Neffen. Frustriert sucht Kenny Aprils Chef auf, um ihren Aufenhaltsort zu erfahren.</desc>
  <credits>
   <actor role="Kenny Powers">Danny McBride</actor>
   <actor role="Dustin Powers">John Hawkes</actor>
   <actor role="April Buchanon">Katy Mixon</actor>
   <actor role="Terrence Cutler">Andrew Daly</actor>
   <actor role="Cassie Powers">Jennifer Irwin</actor>
   <actor role="Stevie Janowski">Steve Little</actor>
   <actor role="Shane">Jason Sudeikis</actor>
   <actor role="Maria">Elizabeth De Razzo</actor>
   <actor role="Clegg">Ben Best</actor>
   <actor role="Vida">Ana de la Reguera</actor>
   <actor role="Sebastian Cisneros">Michael Pena</actor>
   <actor role="Roger Hernandez">Marco Rodríguez</actor>
   <actor role="Catuey">Efren Ramirez</actor>
   <producer>Will Ferrell</producer>
   <producer>Adam McKay</producer>
   <producer>Chris Henchy</producer>
   <producer>Jody Hill</producer>
   <producer>Danny McBride</producer>
   <producer>Ben Best</producer>
   <guest>Will Ferrell</guest>
   <guest>Jerry Minor</guest>
  </credits>
  <category>Comedy</category>
  <category>Series</category>
  <category>Episode</category>
  <category>Show</category>
  <keyword>2000s</keyword>
  <keyword>2010s</keyword>
  <keyword>Assistant</keyword>
  <keyword>Bad behavior</keyword>
  <keyword>Baseball</keyword>
  <keyword>Baseball player</keyword>
  <keyword>Cheeky</keyword>
  <keyword>Failure</keyword>
  <keyword>Fall</keyword>
  <keyword>Love interest</keyword>
  <keyword>Mexico</keyword>
  <keyword>Middle school</keyword>
  <keyword>North Carolina</keyword>
  <keyword>Raw</keyword>
  <keyword>Self-destruction</keyword>
  <keyword>Teacher</keyword>
  <keyword>Unrestrained</keyword>
  <episode-num system="dd_progid">EP02006784.0021</episode-num>
  <episode-num system="xmltv_ns"> 2 / 4 . 1 .  </episode-num>
  <video>
   <quality>HDTV</quality>
  </video>
  <audio>
   <stereo>dolby digital</stereo>
  </audio>
  <previously-shown start="20120226 +0000" />
  <rating system="CB">
   <value>MA 15+</value>
  </rating>
  <rating system="CHVRS">
   <value>18+</value>
  </rating>
  <rating system="CSA">
   <value>-12</value>
  </rating>
  <rating system="ClassInd">
   <value>16</value>
  </rating>
  <rating system="MEKU">
   <value>K16</value>
  </rating>
  <rating system="Régie du cinéma">
   <value>18+</value>
  </rating>
  <rating system="VCHIP">
   <value>TV-MA</value>
  </rating>
  <rating system="advisory">
   <value>Adult Language</value>
  </rating>
  <rating system="advisory">
   <value>Adult Situations</value>
  </rating>
  <rating system="advisory">
   <value>Nudity</value>
  </rating>
  <rating system="advisory">
   <value>Violence</value>
  </rating>
 </programme>

This would be the images for this programme:

    <icon src="https://json.schedulesdirect.org/20141201/image/assets/p194264_b_v3_ac.jpg" width="270" height="360" />
    <icon src="https://json.schedulesdirect.org/20141201/image/assets/p194264_b_h12_ae.jpg" width="960" height="540" />
    <icon src="https://json.schedulesdirect.org/20141201/image/assets/p194264_b_h3_ac.jpg" width="360" height="270" />
    <icon src="https://json.schedulesdirect.org/20141201/image/assets/p194264_b_v5_ac.jpg" width="240" height="360" />

Am I missing some command which adds this?

garybuhrmaster commented 5 years ago

Schedules Direct has a field for episode image. If provided, it is included. However Schedules Direct has not included episode images for quite some time. Instead, the application is expected to determine what type of image it requires, and request it directly as there is no one size that can fit all (there are actually numerous possible types of episode/series images, and an application needs to know what it really wants and request it (does it want the series data? in what format? In what size? Cast, or group pictures?)). The necessary information to obtain the references is included in the XMLTV file (in the dd_progid episode value) to make the "metadata" request. Work with your application folk to pull that information if your application needs it.

gelsas commented 5 years ago

Thank you for your text

I am using this one I thought it is from you that's why I asked here

https://github.com/XMLTV/xmltv

garybuhrmaster commented 5 years ago

XMLTV is downstream from this repo. This is the master repo.