Jump to content


Photo

Tvheadend plugin for Emby - Beta 1


  • Please log in to reply
834 replies to this topic

#821 DeBaschdi OFFLINE  

DeBaschdi

    Member

  • Members
  • 16 posts

Posted 14 March 2019 - 03:22 AM

still no reply,

someone working on this issue ?

channel icons are also not scraped.

 


Edited by DeBaschdi, 14 March 2019 - 10:36 AM.


#822 Gerrit507 OFFLINE  

Gerrit507

    Advanced Member

  • Members
  • 295 posts
  • Local time: 03:45 AM

Posted 14 March 2019 - 08:00 AM

 @DeBaschdi

 

If you already know what isn't working why don't you just implement it?

 

First of all: Your complaint about plain login is completely unjustified. Digest authentication is useless if an unsecure hashfunction is used. Second, most of the users run tvheadend and emby in the same local network or even on the same server anyways. Third, digest authentication did work before the migration from .NET framework to core if recall correctly. Then I tried to get digest working again but there was just no compatible digest authentication in .net core at that time. I don't know if that has changed by now. Last but not least, tvheadend doesn't support https, so it's insecure as hell anyways...

 

Then the version you are using (4.3) is an UNSTABLE version. So you come here and demand that the plugin for emby is immediately changed after tvheadend releases a new nigthly? Use the latest stable version and the plugin will work without issues.

 

One last word about tvheadend: the documentation of the whole project is a nightmare and working with it as a dev is like going through hell. For example on the documentation page of htsp protocol the latest version is v23! Apparently they are on v34! That's just ridiculous.


Edited by Gerrit507, 14 March 2019 - 08:01 AM.


#823 Gerrit507 OFFLINE  

Gerrit507

    Advanced Member

  • Members
  • 295 posts
  • Local time: 03:45 AM

Posted 14 March 2019 - 08:26 AM

I just double checked and the channel icons are working with the unstable version. I've tested this with version 4.3-1776~g717030b. This version is already using the new image paths and it returns a path "Imagecache/<channelid>" as described in github issue you linked, which does link to a valid and existing channel icon on my server.

 

The reason why it's working is because the plugin just takes the path that the server replies. In the tvh kodi addon they just hardcoded "path/<channelid>". Long story short: the tvh emby plugin will always be compatible because it's working with the full path replied by the server.

 

Which means something isn't working on your end...



#824 DeBaschdi OFFLINE  

DeBaschdi

    Member

  • Members
  • 16 posts

Posted 14 March 2019 - 08:56 AM

This Plugin never worked "for me" how it should.
Tvheadend provides Channel and Movie Icons(Posters)
Emby was Scraping the Poster Images, and displayed it as Channel Icons.
And now, (maybe since 4.0) nothing is displayed.
I belive you its working in your Case.

#825 Gerrit507 OFFLINE  

Gerrit507

    Advanced Member

  • Members
  • 295 posts
  • Local time: 03:45 AM

Posted 14 March 2019 - 09:04 AM

This Plugin never worked "for me" how it should.
Tvheadend provides Channel and Movie Icons(Posters)
Emby was Scraping the Poster Images, and displayed it as Channel Icons.
And now, (maybe since 4.0) nothing is displayed.
I belive you its working in your Case.

Ich verstehe deine Konfiguration nicht ganz. Hast Du picons in tvheadend konfiguriert? Bei mir ist unter "Configuration / General / Base / Channel icon / Picon Settings" ein Pfad konfiguriert indem die ganzen picons liegen. Die werden dann von tvhedend unter tv-server/imagecache/<channelid> bereitgestellt, z.B. tv-server/imagecache/1 wäre dann ARD bei mir.

 

Ich habe gerade auch nochmal meine ganzen channels raus geworfen und neu eingerichtet. Die icons laden wunderbar...


Edited by Gerrit507, 14 March 2019 - 09:06 AM.


#826 DeBaschdi OFFLINE  

DeBaschdi

    Member

  • Members
  • 16 posts

Posted 14 March 2019 - 10:30 AM

Ah danke, Englisch ist nicht gerade meine stärke :)

Zu deiner Frage,
Ja ich nutze die Channel Picon Funktion in Tvheadend, zusätzlich enthält mein EPG (xml) Poster Bilder.
Kodi beispielsweise holt sich beides, also das Kanallogo ,+ Poster der jeweiligen Sendung.
Emby hat früher (als es noch halbwegs funktionierte) nur die Poster bezogen, aber fälschlicherweise als Kanallogo angezeigt.

 

Attached File  Screenshot_20190314-152505_Chrome.jpg   91.86KB   4 downloads

Attached File  Screenshot_20190314-152543_Kodi.jpg   47.44KB   4 downloads


Edited by DeBaschdi, 14 March 2019 - 10:35 AM.


#827 Gerrit507 OFFLINE  

Gerrit507

    Advanced Member

  • Members
  • 295 posts
  • Local time: 03:45 AM

Posted 14 March 2019 - 10:44 AM

Ich verstehe. Was wird bei dir angezeigt auf http://tv-server/ima...che/<channelid>

 

tv-server dementsprechend durch die ip deines tvh-servers ersetzen und channelid z.B. 1.

 

Könntest du außerdem noch ein log von emby hochladen, bei dem du die Kanalübersicht aufrufst?


Edited by Gerrit507, 14 March 2019 - 10:46 AM.


#828 DeBaschdi OFFLINE  

DeBaschdi

    Member

  • Members
  • 16 posts

Posted 14 March 2019 - 10:58 AM

Bekommst du morgen Früh, leider komme ich heute nicht mehr an den PC.

Danke für deine Mühen, muss ja nicht so bissig sein. (vllt kam meine Bugmeldung auch falsch rüber?) sry



#829 Gerrit507 OFFLINE  

Gerrit507

    Advanced Member

  • Members
  • 295 posts
  • Local time: 03:45 AM

Posted 14 March 2019 - 11:14 AM

Bekommst du morgen Früh, leider komme ich heute nicht mehr an den PC.

Danke für deine Mühen, muss ja nicht so bissig sein. (vllt kam meine Bugmeldung auch falsch rüber?) sry

Kein Ding. Wie gesagt, ein plugin für tvh zu entwickeln ist ein Alptraum. Ich bin froh, dass wir es überhaupt wieder funktionierend hinbekommen haben und solange alles geht möchte ich am plugin ungern was ändern :D


  • DeBaschdi likes this

#830 DeBaschdi OFFLINE  

DeBaschdi

    Member

  • Members
  • 16 posts

Posted 15 March 2019 - 12:14 AM

Einen wunderschönen guten Morgen.

Ich hab mich gleich als erstes mal daran gesetzt um deine gewünschten Infos zu bekommen.

 

Beim "neu"einlesen der Channels steht folgendes im Log :

2019-03-15 04:50:12.230 Info App: [TVHclient] ChannelDataHelper: Adding channel 

HTSMessage:
  <dump>
    channelId : 388322471
    channelNumber : 4
    channelName : RTL HD
    channelIcon : imagecache/13146
    eventId : 383131
    nextEventId : 383132
    services : 
HTSMessage:
  <dump>
    name : Astra/10832.25H/RTL HD
    type : HDTV
    content : 1
    caid : 65535
    caname : Verschlüsselter Service
    hbbtv : 
HTSMessage:
  <dump>
    0 : 
HTSMessage:
  <dump>
    title : 
HTSMessage:
  <dump>
    name : RTL Startleiste
    lang : deu
  </dump>

, 
    url : http://cdn.digitaltext.rtl.de/launchbar/index.html
    visibility : all
  </dump>

Anschließend, sobald er anfängt das EPG zu beziehen folgendes :

HTSMessage:
  <dump>
    eventId : 383665
    channelId : 26609453
    start : 1552668600
    stop : 1552669800
    title : DuckTales
    description : 2017 
Animationsserie. Tick,Trick und Track sind bei Dagobert Duck zu Besuch. Dort kommen die Brüder einem grossen Geheimnis auf die Spur und suchen nach dem geheimnisvollen Atlantis!

Categories: children's / youth programs, entertainment programs for 6 to 14, series
    subtitle : Die Suche nach Atlantis
    category : children's / youth programs, entertainment programs for 6 to 14, series, 
    contentType : 82
    copyrightYear : 2017
    seasonNumber : 1
    episodeNumber : 2
    image : http://[::ffff:127.0.0.1]:9981/tvheadend/imagecache/52089
    nextEventId : 383666
  </dump>

Aufruf des Imagecaches http://localhost:998...magecache/13125 funktioniert, und zeigt mir das Channelicon im Browser an.

Auch der Posterabruf http://[::ffff:127.0.0.1]:9981/tvheadend/imagecache/52089 funktioniert im Browser und zeigt auch das Poster an.

Bei beiden bezügen musste ich Username+Kennwort eingeben.

(Nicht verwundern, mein TVH Webroot ist /tvheadend. Ich verwende mehrere Serverdienste und separiere in jeweilige Webroots, das ganze geht anschließend über mein reverse Proxy um von außen https verwenden zu können.)

 

Aufruf imagecache Channelnumber läuft bei mir ins leere. Das Channellogo von ARD (channelid 1) hat http://localhost:998...magecache/13139.

 

Das Logfile "nach dem einlesen" beinhaltet den aufruf der Kanalübersicht

 

Zusätzlich zu dem Image Bug habe ich 2 UHD  Kanäle in meiner Kanalliste, leider tauchen diese überhaupt nicht in Emby auf :)


Edited by DeBaschdi, 17 March 2019 - 01:13 AM.


#831 DeBaschdi OFFLINE  

DeBaschdi

    Member

  • Members
  • 16 posts

Posted 15 March 2019 - 02:56 PM

Obsolet


Edited by DeBaschdi, 15 March 2019 - 03:14 PM.


#832 Gerrit507 OFFLINE  

Gerrit507

    Advanced Member

  • Members
  • 295 posts
  • Local time: 03:45 AM

Posted 15 March 2019 - 03:53 PM

2019-03-15 05:09:19.567 Info HttpClient: GET http://emby-server:bastian1985@127.0.0.1:9981/tvheadend/imagecache/13147
2019-03-15 05:09:19.575 Error HttpServer: Error processing request
	*** Error Report ***
	Version: 4.0.2.0
	Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
	Operating system: Unix 4.15.0.42
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Processor count: 4
	Program data path: /var/lib/emby
	Application directory: /opt/emby-server/system
	MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Unauthorized
	   at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsyncInternal(HttpRequestOptions options, String httpMethod)
	   at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsync(HttpRequestOptions options, String httpMethod)
	   at MediaBrowser.Providers.Manager.ProviderManager.SaveImage(BaseItem item, String url, ImageType type, Nullable`1 imageIndex, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.Library.LibraryManager.ConvertImageToLocal(BaseItem item, ItemImageInfo image, Int32 imageIndex, CancellationToken cancellationToken)
	   at Emby.Drawing.ImageProcessor.ProcessImage(ImageProcessingOptions options, CancellationToken cancellationToken)
	   at MediaBrowser.Api.Images.ImageService.GetImageResult(BaseItem item, Int64 itemId, ImageRequest request, ItemImageInfo image, Boolean cropwhitespace, ImageFormat[] supportedFormats, IImageEnhancer[] enhancers, Nullable`1 cacheDuration, IDictionary`2 headers, Boolean isHeadRequest, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.Services.ServiceExecGeneral.GetTaskResult(Task task)
	   at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, ILogger logger, String operationName, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, String urlString, String host, String localPath, CancellationToken cancellationToken)
	Source: Emby.Server.Implementations
	TargetSite: Void MoveNext()
	   at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsyncInternal(HttpRequestOptions options, String httpMethod)
	   at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsync(HttpRequestOptions options, String httpMethod)
	   at MediaBrowser.Providers.Manager.ProviderManager.SaveImage(BaseItem item, String url, ImageType type, Nullable`1 imageIndex, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.Library.LibraryManager.ConvertImageToLocal(BaseItem item, ItemImageInfo image, Int32 imageIndex, CancellationToken cancellationToken)
	   at Emby.Drawing.ImageProcessor.ProcessImage(ImageProcessingOptions options, CancellationToken cancellationToken)
	   at MediaBrowser.Api.Images.ImageService.GetImageResult(BaseItem item, Int64 itemId, ImageRequest request, ItemImageInfo image, Boolean cropwhitespace, ImageFormat[] supportedFormats, IImageEnhancer[] enhancers, Nullable`1 cacheDuration, IDictionary`2 headers, Boolean isHeadRequest, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.Services.ServiceExecGeneral.GetTaskResult(Task task)
	   at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, ILogger logger, String operationName, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, String urlString, String host, String localPath, CancellationToken cancellationToken)
	

Unauthorized beim Abruf der channel icons.

 

Kannst du bitte einen Screenshot der Berechtigungen des emby-server Benutzers in TvHedenend hochladen?

 

Bei Unauthorized in diesem Fall liegt das eigentlich meistens daran, dass digest statt plain authentication verwendet wird oder dem Benutzer die Berechtigung "Web interface" fehlt.



#833 DeBaschdi OFFLINE  

DeBaschdi

    Member

  • Members
  • 16 posts

Posted 15 March 2019 - 10:32 PM

Naklar

 

Attached File  Screenshot_20190316-033052_Chrome.jpg   114.01KB   5 downloads

Attached File  Screenshot_20190316-032346_Chrome.jpg   105.66KB   5 downloads

 

Die Berechtigung Webinterface hatte ich neu hunzugefügt, war bisher nicht aktiviert. 

Geht aber trotzdem nich.


Edited by DeBaschdi, 15 March 2019 - 10:58 PM.


#834 Gerrit507 OFFLINE  

Gerrit507

    Advanced Member

  • Members
  • 295 posts
  • Local time: 03:45 AM

Posted 16 March 2019 - 08:23 AM

Erscheint im log immer noch unauthorized?



#835 DeBaschdi OFFLINE  

DeBaschdi

    Member

  • Members
  • 16 posts

Posted 17 March 2019 - 01:14 AM

Das Kuriose, ich hatte nie was an den Berechtigungen geändert, (anfangs ging es ja teilweise)

,jetzt steht das da :

Für meine leihenhaften Augen das selbe :)

2019-03-17 06:06:38.727 Info HttpClient: Found userInfo in url: emby-server:testpw2 ... url: http://emby-server:testpw2@127.0.0.1:9981/tvheadend/imagecache/13132
2019-03-17 06:06:38.727 Info HttpClient: GET http://emby-server:testpw2@127.0.0.1:9981/tvheadend/imagecache/13132
2019-03-17 06:06:38.729 Error HttpServer: Error processing request
	*** Error Report ***
	Version: 4.0.2.0
	Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
	Operating system: Unix 4.15.0.42
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Processor count: 4
	Program data path: /var/lib/emby
	Application directory: /opt/emby-server/system
	MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Unauthorized
	   at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsyncInternal(HttpRequestOptions options, String httpMethod)
	   at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsync(HttpRequestOptions options, String httpMethod)
	   at MediaBrowser.Providers.Manager.ProviderManager.SaveImage(BaseItem item, String url, ImageType type, Nullable`1 imageIndex, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.Library.LibraryManager.ConvertImageToLocal(BaseItem item, ItemImageInfo image, Int32 imageIndex, CancellationToken cancellationToken)
	   at Emby.Drawing.ImageProcessor.ProcessImage(ImageProcessingOptions options, CancellationToken cancellationToken)
	   at MediaBrowser.Api.Images.ImageService.GetImageResult(BaseItem item, Int64 itemId, ImageRequest request, ItemImageInfo image, Boolean cropwhitespace, ImageFormat[] supportedFormats, IImageEnhancer[] enhancers, Nullable`1 cacheDuration, IDictionary`2 headers, Boolean isHeadRequest, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.Services.ServiceExecGeneral.GetTaskResult(Task task)
	   at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, ILogger logger, String operationName, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, String urlString, String host, String localPath, CancellationToken cancellationToken)
	Source: Emby.Server.Implementations
	TargetSite: Void MoveNext()
	   at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsyncInternal(HttpRequestOptions options, String httpMethod)
	   at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsync(HttpRequestOptions options, String httpMethod)
	   at MediaBrowser.Providers.Manager.ProviderManager.SaveImage(BaseItem item, String url, ImageType type, Nullable`1 imageIndex, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.Library.LibraryManager.ConvertImageToLocal(BaseItem item, ItemImageInfo image, Int32 imageIndex, CancellationToken cancellationToken)
	   at Emby.Drawing.ImageProcessor.ProcessImage(ImageProcessingOptions options, CancellationToken cancellationToken)
	   at MediaBrowser.Api.Images.ImageService.GetImageResult(BaseItem item, Int64 itemId, ImageRequest request, ItemImageInfo image, Boolean cropwhitespace, ImageFormat[] supportedFormats, IImageEnhancer[] enhancers, Nullable`1 cacheDuration, IDictionary`2 headers, Boolean isHeadRequest, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.Services.ServiceExecGeneral.GetTaskResult(Task task)
	   at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, ILogger logger, String operationName, CancellationToken cancellationToken)
	   at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, String urlString, String host, String localPath, CancellationToken cancellationToken)

Edited by DeBaschdi, 17 March 2019 - 01:15 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users