NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 104 105 106 107 108 … 1231 Next »
something is creating rougue folders in skin2 folder

 
  • 0 Vote(s) - 0 Average
something is creating rougue folders in skin2 folder
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,849
Threads: 954
Joined: May 2006
#11
2009-08-26, 03:21 AM
What about this in SkinPluginHelper\Helper.cs

line 239 DestinationDirectory.FullName + @"\" + SourceSubDirectory.Name),

or maybe the ones that don't do the "\\"

Martin
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#12
2009-08-26, 03:30 AM (This post was last modified: 2009-08-26, 03:35 AM by whurlston.)
mvallevand Wrote:What about this in SkinPluginHelper\Helper.cs

line 239 DestinationDirectory.FullName + @"\" + SourceSubDirectory.Name),

or maybe the ones that don't do the "\\"

Martin
The @ symbol tells it that the string does not need to be escaped so that shouldn't be it.

@"\" is the same thing as "\\"

Can one of you post your SkinPluginHelper.exe.log so I can double check something?
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#13
2009-08-26, 04:05 AM (This post was last modified: 2009-08-26, 04:13 AM by JavaWiz.)
whurlston Wrote:It has to be that, the iplayer plugin or Music, since those are the only ones you have in common. I'm guessing it's the CS4 code though.

Downloading the code now to take a look.
Do either of those use the WizUtilities? There are a couple of methods in WizInfo that may be related to this, in particular this one:

Code:
/// <summary>
        /// Copy files from Blue Skin directory to current skin directory if they don't exist.
        /// Plugins should implement this method, so the plugin will run under other skins.
        /// </summary>
        /// <param name="skinSubDir">target Skin sub directory</param>
        public static void populateSkinDirectoryIfNeccessary(string skinSubDir)
        {
            WizInfo.LogMessage("WizUiHelper", "populateSkinDirectoryIfNecessary()", skinSubDir, LOGLVL.INFO);
            string targetSkin = GBPvrSkinRootDirectory() + skinSubDir;
            targetSkin = targetSkin.Replace(@"\skin\", @"\skin2\");
            WizInfo.LogMessage("WizUiHelper", "populateSkinDirectoryIfNecessary()", "TargetSkin: " + targetSkin, LOGLVL.INFO);
            string blueSkin = GBPvrStandardSkinDirectory() + skinSubDir;
            blueSkin = blueSkin.Replace(@"\skin\", @"\skin2\");
            WizInfo.LogMessage("WizUiHelper", "populateSkinDirectoryIfNecessary()", "BlueSkin: " + blueSkin, LOGLVL.INFO);
            if (!Directory.Exists(targetSkin))
            {
                WizInfo.LogMessage("WizUiHelper", "populateSkinDirectoryIfNecessary()", "I don't think " + targetSkin + " directory exists", LOGLVL.INFO);
                try
                {
                    Directory.CreateDirectory(targetSkin);
                }
                catch (Exception e)
                {
                    WizInfo.LogMessage("WizUiHelper", "populateSkinDirectoryIfNecessary()", "Bummer, guess I was wrong. " + e.Message, LOGLVL.INFO);
                }
            }
            string[] files = Directory.GetFiles(blueSkin, @"*.*");
            for (int i=0; i < files.Length; i++)
            {
                string fileName = Path.GetFileName(files[i]);
                if (!File.Exists(targetSkin + "\\" + fileName))
                {
                    File.Copy(files[i], targetSkin + "\\" + fileName);
                }
            }
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#14
2009-08-26, 04:24 AM (This post was last modified: 2009-08-26, 04:32 AM by whurlston.)
Not sure if they do, but that could be it:

Quote:string targetSkin = string targetSkin = GBPvrSkinRootDirectory() + skinSubDir;

If for some reason GBPvrSkinRootDirectory() doesn't return a string ending with "\" and they don't pass a skinSubDir starting with it, that could cause the issue.

As an off topic ramble: Did anyone know that C# can use unix style paths with forward slashes such as Directory.CreateDirectory("skin2/myplugin"); ? I just recently stumbled on that.
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#15
2009-08-26, 04:52 AM
whurlston Wrote:Not sure if they do, but that could be it:



If for some reason GBPvrSkinRootDirectory() doesn't return a string ending with "\" and they don't pass a skinSubDir starting with it, that could cause the issue.

As an off topic ramble: Did anyone know that C# can use unix style paths with forward slashes such as Directory.CreateDirectory("skin2/myplugin"); ? I just recently stumbled on that.
Here is the code for GBPvrSkinRootDirectory():
Code:
[SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]///[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]<summary>[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]///[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008000][SIZE=2][COLOR=#008000] Get PVRX2-GBPVR skin root directory.[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]///[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]</summary>[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]///[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]<returns></returns>[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]public[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]static[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] GBPvrSkinRootDirectory()[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]return[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] GBPvrLegacySkinRootDirectory().Replace([/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"\\skin\\"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2], [/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"\\skin2\\"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]);[/SIZE]
[SIZE=2]}[/SIZE]
and GBPvrLegacySkinRootDirectory():
Code:
[SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]///[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]<summary>[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]///[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#008000][SIZE=2][COLOR=#008000] Get GBPVR Legacy skin root directory.[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]///[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]</summary>[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]///[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]<returns></returns>[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]public[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]static[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] GBPvrLegacySkinRootDirectory()[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2][COLOR=#008000][SIZE=2][COLOR=#008000]//return GBPVR.Public.PluginHelperFactory.getPluginHelper().GetSkinRootDirectory();[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] rsDir = cfgGetString([/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"RootSkinDirectory"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2], [/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]@"\skin\"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]);[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] curSkin = cfgGetString([/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"ActiveSkin"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2], [/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"blue"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]);[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]return[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] GBPvrRootDir + rsDir + curSkin + [/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]@"\"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2];[/SIZE]
[SIZE=2][COLOR=#008000][SIZE=2][COLOR=#008000]//return cfgGetString("RootSkinDirectory");[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2]}[/SIZE]

So, it looks like it should always end with a '\'
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#16
2009-08-26, 05:01 AM
Yup, it will always end with the backslash so it shouldn't be caused by WizTools then. It has to be some code in one of the other plugins. I'll try to load them up this weekend and test them if it hasn't been found by then.
roy
Offline

Posting Freak

Posts: 830
Threads: 95
Joined: Sep 2005
#17
2009-08-26, 01:32 PM
I see this also. Right now I only get the moviewiz folder for whichever cs skin I switch to, but I have seen other plugin folders before. The folder is created upon startup of GBPVR.

Found this in PVRX2.exe.log:

Code:
2009-08-26 09:23:10.366    INFO    [1]    WizUiHelper:   populateSkinDirectoryIfNecessary()- MovieWiz
2009-08-26 09:23:10.366    INFO    [1]    WizUiHelper:   populateSkinDirectoryIfNecessary()- TargetSkin: C:\Program Files\Devnz\GBPVR\.\skin2\Community-SDMovieWiz
2009-08-26 09:23:10.366    INFO    [1]    WizUiHelper:   populateSkinDirectoryIfNecessary()- BlueSkin: C:\Program Files\Devnz\GBPVR\.\skin2\Community-SDMovieWiz
2009-08-26 09:23:10.366    INFO    [1]    WizUiHelper:   populateSkinDirectoryIfNecessary()- I don't think C:\Program Files\Devnz\GBPVR\.\skin2\Community-SDMovieWiz directory exists

Maybe this is helpful.
What, me worry?

MSI H270 PC Mate | Core i3-7100 | 16GB RAM | 275GB M.2 2280 SSD | 4TB + 2TB HDD | Zalman Z3 Case | Win10
HDHR Prime | HVR2250 | PCH A-110 | PCH A-100 | Harmony 650 & 700 remotes | Comcast | Schedules Direct
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#18
2009-08-26, 02:28 PM
Hmm... Roy, what version of WizUiHelper.DLL do you have?
roy
Offline

Posting Freak

Posts: 830
Threads: 95
Joined: Sep 2005
#19
2009-08-26, 04:00 PM
JavaWiz Wrote:Hmm... Roy, what version of WizUiHelper.DLL do you have?
Looks like 1.0.20.1, per the log attached.
What, me worry?

MSI H270 PC Mate | Core i3-7100 | 16GB RAM | 275GB M.2 2280 SSD | 4TB + 2TB HDD | Zalman Z3 Case | Win10
HDHR Prime | HVR2250 | PCH A-110 | PCH A-100 | Harmony 650 & 700 remotes | Comcast | Schedules Direct
roy
Offline

Posting Freak

Posts: 830
Threads: 95
Joined: Sep 2005
#20
2009-08-26, 04:12 PM (This post was last modified: 2009-08-26, 05:07 PM by roy.)
OK, I just installed the latest WizDLLs from the wiki (WizDLLs_setup_V2009_07_08.exe), and seems to have resolved it. No more directories created.

edit: However, now when using the skin plugin, I get dumped back to the main menu when selecting a directory. Seems it may be related to wiz, at the end of the attached log.
What, me worry?

MSI H270 PC Mate | Core i3-7100 | 16GB RAM | 275GB M.2 2280 SSD | 4TB + 2TB HDD | Zalman Z3 Case | Win10
HDHR Prime | HVR2250 | PCH A-110 | PCH A-100 | Harmony 650 & 700 remotes | Comcast | Schedules Direct
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Channels with identical names-manually creating a channel? keith_leitch 4 1,947 2010-09-25, 08:21 PM
Last Post: martint123
  How to move the gbpvr recordings folder to a new location? navyblue 7 2,762 2010-07-17, 09:32 PM
Last Post: navyblue
  PVRX2 in Startup Folder Trouble mikeh49 2 1,430 2010-03-20, 09:53 PM
Last Post: Graham
  Managing DVD Folders in the Video Library Grinder2112 7 2,509 2010-03-12, 07:52 PM
Last Post: Grinder2112
  FTG folder in the default blue Skin McBainUK 2 1,628 2010-02-10, 03:59 PM
Last Post: McBainUK
  Create recordings without folders van helsing 3 1,668 2010-01-27, 09:04 AM
Last Post: griffy
  protected folders dspdrew 3 1,530 2010-01-02, 05:18 AM
Last Post: sub
  Removing recording folders coppelltx 4 1,886 2009-12-18, 12:03 AM
Last Post: coppelltx
  dvd folders not playing fuzzweed 1 1,355 2009-09-27, 10:56 AM
Last Post: fuzzweed
  Stop GB-PVR from creating folders for each capture dannyv45 2 1,571 2009-09-20, 05:39 PM
Last Post: dannyv45

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

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

Linear Mode
Threaded Mode