@@ -233,7 +233,7 @@ def dictionary_init(self):
233
233
self .ratingmask = re .compile ('<span.*?aggregate-rating__score.*?><span.*?>(?P<rating>.*?)</span>.*?<span.*?class=.*?class=.*?>(?P<ratingcount>.*?)</div' , re .S )
234
234
self .castmask = re .compile ('title-cast-item__actor.*?>(?P<actor>.*?)</a>(?:<div.*?<ul.*?>(?P<character>.*?)</span.*?</ul></div>)?(?:<a.*?><span><span.*?>(?P<episodes>.*?)</span></span>)?' , re .S )
235
235
self .postermask = re .compile ('<div.*?ipc-media--poster.*?<img.*?ipc-image.*?src="(http.*?)"' , re .S )
236
- self .storylinemask = re .compile ('data-testid="storyline .*?<span >(?P<g_storyline>Storyline )</span>.*?ipc-html-content-inner- div.*?>(?P<storyline>.*? )</div ' , re .S )
236
+ self .storylinemask = re .compile ('<span.*?role="presentation".*? data-testid="plot-xl" .*?>(?P<storyline>.*? )</span>.*?</ div> .*?data-testid="storyline.*?<span >(?P<g_storyline>Storyline )</span> ' , re .S )
237
237
238
238
self .htmltags = re .compile ('<.*?>' , re .S )
239
239
self .allhtmltags = re .compile ('<.*>' , re .S )
@@ -337,7 +337,7 @@ def showDetails(self):
337
337
self .Page = 1
338
338
339
339
def showExtras (self ):
340
- if self .Page == 1 :
340
+ if self .Page == 1 and self [ 'key_blue' ]. getText () :
341
341
self ["extralabel" ].show ()
342
342
self ["detailslabel" ].hide ()
343
343
self ["castlabel" ].hide ()
@@ -477,6 +477,9 @@ def html2utf8(self, in_html):
477
477
def IMDBquery (self , data ):
478
478
self ["statusbar" ].setText (_ ("IMDb Download completed" ))
479
479
self .html2utf8 (data )
480
+ # logfile = open("/media/hdd/imdb.html", "w")
481
+ # logfile.write(self.inhtml)
482
+ # logfile.close()
480
483
print ('###############1' )
481
484
self .generalinfos = self .generalinfomask .search (self .inhtml )
482
485
if self .generalinfos :
@@ -530,6 +533,9 @@ def http_failed(self, error):
530
533
def IMDBquery2 (self , data ):
531
534
self ["statusbar" ].setText (_ ("IMDb Re-Download completed" ))
532
535
self .html2utf8 (data )
536
+ # logfile = open("/media/hdd/imdb.html", "w")
537
+ # logfile.write(self.inhtml)
538
+ # logfile.close()
533
539
print ('###############3' )
534
540
self .generalinfos = self .generalinfomask .search (self .inhtml )
535
541
self .IMDBparse ()
@@ -721,11 +727,11 @@ def IMDBparse(self):
721
727
722
728
if Extratext :
723
729
self ["extralabel" ].setText (Extratext .strip ('\n ' ))
724
- self ["extralabel" ].hide ()
725
730
self ["key_blue" ].setText (_ ("Extra Info" ))
726
731
else :
727
732
self ["key_blue" ].setText ("" )
728
733
734
+ self ["extralabel" ].hide ()
729
735
self ["detailslabel" ].setText (str (Detailstext ))
730
736
731
737
def IMDBPoster (self , string ):
0 commit comments