Results 1 to 9 of 9

Thread: Deleteing folders with NFO files

  1. #1
    Join Date
    May 2006
    Location
    Canada
    Posts
    20,861

    Deleteing folders with NFO files

    XBMC likes to have a a couple of NFO files that aren't named with the the recording name, tvshow.nfo and movie.nfo. Is there any way that NextPVR can be configure to remove a folder and contents if it only contains known list of files?

    Martin

  2. #2
    Join Date
    Dec 2005
    Location
    UK
    Posts
    1,500
    The default config.xml has this ...

    <DeleteAdditionalExtensions>srt,txt,log,d2a,edl,cs v,bat,wme,vprj,logo.txt,dvbsub,sm,xml</DeleteAdditionalExtensions>
    The entry for "logo.txt" as an AdditionalExtension might be doing what you want.
    AMD A75, 4 Gig, 1000 Gig, Nvidia N210
    1 x Blackgold BGT3620 dual DVB-T2
    1 x kworld USB dual DVB-T (IT9135)
    2 x Hauppauge Nova-t PCI

  3. #3
    Join Date
    May 2006
    Location
    Canada
    Posts
    20,861
    Maybe, but I don't want it to delete tvshow.nfo or folder.jpg etc, until the last video file is deleted.

    Martin

  4. #4
    Join Date
    Nov 2003
    Location
    NextPVR HQ, Wellington, New Zealand
    Posts
    75,998
    Give this one a go. It should do it.
    Attached Files Attached Files

  5. #5
    Join Date
    May 2006
    Location
    Canada
    Posts
    20,861
    Thanks sub, what file spec does it delete?

    Martin

  6. #6
    Join Date
    Nov 2003
    Location
    NextPVR HQ, Wellington, New Zealand
    Posts
    75,998
    It always had logic to look for a couple of files like thumbs.db etc, and I've added movies.nfo and tvshow.nfo to that list.

  7. #7
    Join Date
    May 2006
    Location
    Canada
    Posts
    20,861
    Ok, thanks, I updated to this NShared but when I delete the last file still leaves tvshow.nfo

    Code:
    2012-12-22 14:15:00.601	[DEBUG][6]	DeleteRecording(2852)
    2012-12-22 14:15:00.601	[DEBUG][6]	DeleteRecording@1
    2012-12-22 14:15:00.601	[DEBUG][6]	Cancelling wake up request for for 'RecordingOID2852'
    2012-12-22 14:15:00.621	[DEBUG][6]	 -removing: C:\movies\World Poker Tour Season 10\World Poker Tour Season 10_20121222_14001500.ts
    2012-12-22 14:15:00.624	[DEBUG][6]	DeleteRecording@2
    2012-12-22 14:15:00.625	[DEBUG][6]	 -removing: C:\movies\World Poker Tour Season 10\World Poker Tour Season 10_20121222_14001500.nfo
    2012-12-22 14:15:00.627	[DEBUG][6]	 -removing: C:\movies\World Poker Tour Season 10\World Poker Tour Season 10_20121222_14001500.ts.Timing.Info
    2012-12-22 14:15:00.628	[DEBUG][6]	PlaybackPositionHelper.DeletePlaybackPosition(C:\movies\World Poker Tour Season 10\World Poker Tour Season 10_20121222_14001500.ts)
    2012-12-22 14:15:00.634	[DEBUG][6]	DeleteRecording@5
    2012-12-22 14:15:00.634	[DEBUG][6]	DeleteRecording@exit
    Martin

  8. #8
    Join Date
    Nov 2003
    Location
    NextPVR HQ, Wellington, New Zealand
    Posts
    75,998
    I see what I did wrong. Here is another attempt.
    Attached Files Attached Files

  9. #9
    Join Date
    May 2006
    Location
    Canada
    Posts
    20,861
    Thanks sub that got it.

    Martin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •