NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Kodi / XBMC v
« Previous 1 … 39 40 41 42 43
Channel Icon Idea

 
  • 0 Vote(s) - 0 Average
Channel Icon Idea
wileecoyote
Offline

Member

Posts: 121
Threads: 9
Joined: Sep 2012
#1
2012-09-26, 05:52 PM (This post was last modified: 2012-09-26, 06:00 PM by wileecoyote.)
I was playing with the channel icon locations and found out how to find the userdata folder for Windows. I expanded your code to write to the addon_data\pvr.nextpvr folder as such...


Code:
#ifdef TARGET_WINDOWS
    // find directory for storing channel icons
    m_channelIconDirectory = getenv("APPDATA");
    m_channelIconDirectory += PATH_SEPARATOR_CHAR;
    m_channelIconDirectory += "XBMC";
    m_channelIconDirectory += PATH_SEPARATOR_CHAR;
    m_channelIconDirectory += "userdata";
    m_channelIconDirectory += PATH_SEPARATOR_CHAR;
    m_channelIconDirectory += "addon_data";
    m_channelIconDirectory += PATH_SEPARATOR_CHAR;
    m_channelIconDirectory += "pvr.nextpvr";
    m_channelIconDirectory += PATH_SEPARATOR_CHAR;

#elif defined (TARGET_LINUX) || defined(TARGET_DARWIN)


#elif defined(TARGET_OSX)

#endif

You might expand it to create/write to a channel_icon folder in the pvr.nextpvr folder.

I didn't know where the folders are in Linux or OSX so I left those blank for now.


Edit: I forgot to mention that this code works on Windows 8 as well.
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,787
Threads: 769
Joined: Nov 2003
#2
2012-09-26, 06:24 PM
Yep, that'd work on Windows. I wish I could find an XBMC way to locate this directory, so it'd work on all the platforms.
wileecoyote
Offline

Member

Posts: 121
Threads: 9
Joined: Sep 2012
#3
2012-09-26, 06:28 PM
I agree, I looked all morning and couldn't find anything for c++ to locate it Sad
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Kodi Channel not updating aTF6i 2 563 2025-03-09, 12:26 AM
Last Post: aTF6i
  Missing EPG guide data for one channel (clients only) Kurosh 10 1,266 2025-02-23, 11:07 AM
Last Post: Kurosh
  Channel changing problem noWGOon 1 443 2024-11-15, 02:30 AM
Last Post: mvallevand
  Kodi Channel Icons wrong and can't be corrected wapkaplet 11 1,450 2024-10-23, 02:11 PM
Last Post: mvallevand
Lightbulb Channel Icons Not Working membball84 16 1,988 2024-08-05, 06:51 PM
Last Post: mvallevand
  Channel logos out-of-sync in Kodi cncb 5 2,111 2024-04-24, 02:42 PM
Last Post: Offroad
  Error all tuners locked to one channel JackNoren 1 596 2024-02-23, 04:52 PM
Last Post: sub
  [UK] Lost all Channel 4 HD Freeview listings on Kodi clients njc 14 1,984 2023-09-30, 03:53 PM
Last Post: njc
  Why does Kodi show channel icon for upcoming recordings? muzicman0 5 2,109 2021-05-20, 03:21 PM
Last Post: muzicman0
  issue with channel change 2leftfeet 4 1,775 2020-04-13, 05:59 PM
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