NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 56 57 58 59 60 … 433 Next »
Any way to get TV Logos from m3u IPTV playlist?

Any way to get TV Logos from m3u IPTV playlist?
shqiperih
Offline

Junior Member

Posts: 16
Threads: 7
Joined: Apr 2018
#1
2018-04-18, 05:22 PM
Hello,
First of all great work.
I was wandering if there is a way to update or tweak the importer function to also read the tv-logo from the m3u list given by the provider.
This is usually in the below format :
#EXTINF:-1 tvg-id="RTV21.al" tvg-name="RTV 21 HD AL" tvg-logo="http://cdn.mypanel.tv/picon/rtv21al_2.png" group-title="Albania",RTV 21 HD AL
http://theactualurl.m3u8

So the info is given at the tvg-logo="url". Maybe we can pull this only once and cache it.

I have tried to write my own code to do this and rename the logonames to match the channel names as they appear in npvr however because the channels have characters like &/ and other control characters i cannot create a filename with the those characters so the logo name and tv name don't match.

If there is code available which i can modify and help ouyt in any way let me know.

thank you!
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#2
2018-04-18, 06:42 PM
It normally would download these to the icons to the local cache at C:\Users\Public\NPVR\Media\Channels, but it looks like I disabled it recently for IPTV channels, and forgot to reenable. This updated NShared.dll should fix it. You'll need to delete your channels and reimport your channels to get it to pull them in.
shqiperih
Offline

Junior Member

Posts: 16
Threads: 7
Joined: Apr 2018
#3
2018-04-21, 03:44 PM
sub Wrote:It normally would download these to the icons to the local cache at C:\Users\Public\NPVR\Media\Channels, but it looks like I disabled it recently for IPTV channels, and forgot to reenable. This updated NShared.dll should fix it. You'll need to delete your channels and reimport your channels to get it to pull them in.

I gave it a try with the new Dll you posted earlier. It seems that indeed it does download the Icons now. However it somehow failed because i only see a few icons. I suspect it has something to do with the following error lines,

Is there a way to catch these errors and just skip the lines it can't handle instead of quitting th ewhole process?

here are the logs:

2018-04-21 10:24:12.723 [DEBUG][1] Downloading m3u
2018-04-21 10:24:14.696 [DEBUG][1] Loaded m3u
2018-04-21 10:24:14.696 [DEBUG][1] Loading xmltv channel list
2018-04-21 10:24:18.086 [DEBUG][1] Loaded channel list
2018-04-21 10:24:19.399 [ERROR][1] Error downloading icon: System.UriFormatException: Invalid URI: The format of the URI could not be determined.

Server stack trace:
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.Uri..ctor(String uriString)
at NShared.RecordingService.GetExtraInfo(String key, String extra)
at NShared.RecordingRemote.GetExtraInfo(String key, String extra)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at NShared.IRecordingService.GetExtraInfo(String key, String extra)
at NShared.RecordingServiceProxy.GetExtraInfo(String key, String extra)
at NShared.ImportIPTVChannelForm.buttonOK_Click(Object sender, EventArgs e)
2018-04-21 10:24:19.586 [DEBUG][1] About to save 14993 channels
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#4
2018-04-21, 04:59 PM
shqiperih Wrote:Is there a way to catch these errors and just skip the lines it can't handle instead of quitting th ewhole process?
It does try to do that already. It has to handle a few different types of exceptions in different ways (some of which disable further downloading, and some continue).

It looks like I hadn't catered for garbage in the URL (like "N/A" or "none" instead of a real URL). This patch should handle it.
shqiperih
Offline

Junior Member

Posts: 16
Threads: 7
Joined: Apr 2018
#5
2018-04-21, 05:34 PM
Outstanding!!!

All is working as it should. Have a donation and thank you!
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  IPTV Channel Mapping jrockow 15 8,085 2021-03-07, 09:45 PM
Last Post: jrockow
  State of IPTV support TRW 18 6,090 2020-10-22, 09:58 AM
Last Post: pbelo
  IPTV service called Joker TV quek9 9 5,998 2020-09-27, 08:23 PM
Last Post: quek9
  Remove Logos jrockow 2 1,664 2020-06-23, 05:21 PM
Last Post: jrockow
  Someone to create a IPTV channel Brucek2839 0 1,395 2020-04-08, 02:14 PM
Last Post: Brucek2839
  how to create my own IPTV channel Brucek2839 7 3,631 2020-03-31, 04:24 PM
Last Post: mvallevand
  IPTV timeout jrockow 2 1,993 2020-01-12, 07:41 PM
Last Post: jrockow
  IPTV Connections Greyed out mwkurt 2 1,778 2019-12-04, 07:55 PM
Last Post: mwkurt
  Rec service crashing when trying iptv streams that work in vlc pBS 30 7,542 2019-11-30, 04:27 AM
Last Post: pBS
  adding channels to iptv listing pmuraw 1 1,955 2019-11-14, 04:03 AM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode