NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Kodi / XBMC v
« Previous 1 … 30 31 32 33 34 … 43 Next »
Orphaned files when deleting from XBMC

 
  • 0 Vote(s) - 0 Average
Orphaned files when deleting from XBMC
dinki
Offline

Senior Member

Posts: 416
Threads: 71
Joined: Mar 2006
#1
2014-04-19, 09:32 PM
I'm not sure if I'm having an issue with XBMC or nPVR. I use XBMC clients exclusively with my nPVR backend. I am seeing orphaned .nfo files (created with imageGrabLite) when I delete recordings from XBMC. This not only leaves the .nfo files but also the directories for the show as well. Does anyone know what I should do to ensure that XBMC deletes all files associated with the recording as well as the directory if it is empty?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,905
Threads: 955
Joined: May 2006
#2
2014-04-19, 10:36 PM
dinki Wrote:I'm not sure if I'm having an issue with XBMC or nPVR. I use XBMC clients exclusively with my nPVR backend. I am seeing orphaned .nfo files (created with imageGrabLite) when I delete recordings from XBMC. This not only leaves the .nfo files but also the directories for the show as well. Does anyone know what I should do to ensure that XBMC deletes all files associated with the recording as well as the directory if it is empty?

I guess it depends how you delete the files. If you use something that is based on the NextPVR backend you need to add nfo in

<DeleteAdditionalExtension>...,nfo</DeleteAdditionalExtension>

Martin
dinki
Offline

Senior Member

Posts: 416
Threads: 71
Joined: Mar 2006
#3
2014-04-21, 03:05 PM
Perfect. Thanks!
kricker
Offline

Member

Posts: 131
Threads: 11
Joined: Jun 2007
#4
2014-04-22, 01:15 AM
That seems to work from inside XBMC's live TV/Recordings window. Unfortunately if you have your items brought into the XBMC TV library and delete from there, this doesn't work. I have a small batch file I run on occasion to clean up those left over files.
dinki
Offline

Senior Member

Posts: 416
Threads: 71
Joined: Mar 2006
#5
2014-04-22, 12:41 PM
Hi Kricker. I'm not importing into the XBMC native TV library yet. Can you share your batch file anyway?
kricker
Offline

Member

Posts: 131
Threads: 11
Joined: Jun 2007
#6
2014-04-22, 01:04 PM
Sure:
Code:
@echo off
for /r %%G in ("*.nfo") do (call :check "%%G")
goto :eof

:check
if "%~nx1"=="tvshow.nfo" goto :eof
if exist "%~pn1.ts" goto :eof
echo "%~pnx1"
del "%~pnx1"

:eof
This only does .nfo files, but it could be expanded to do .txt and .edl files as well.
Code:
if "%~nx1"=="tvshow.nfo" goto :eof
if exist "%~pn1.ts" goto :eof

Those 2 lines allow it to skip the tvshow.nfo, so it does not get deleted and the .ts file is the recorded show. If you do not record to .ts files, you probably need to change that.
dinki
Offline

Senior Member

Posts: 416
Threads: 71
Joined: Mar 2006
#7
2014-04-22, 01:15 PM
Perfect. Thank you. I didn't know you could record to anything but TS files.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Are conskip files used? geniepro 2 1,254 2019-09-28, 12:22 AM
Last Post: geniepro
  Buffering of HD channels in XBMC only Fritters 23 17,110 2017-01-03, 06:22 AM
Last Post: p37307
  Keeps accumulating temp files EiEiOhh 8 3,531 2016-12-12, 05:43 PM
Last Post: liquidbad
  Live TV buffer files not deleting Ashjg 2 3,146 2016-02-09, 04:54 PM
Last Post: Ashjg
  Moving to NPVR/NMT to NPVR+Fire TV/XBMC jt25741 15 8,328 2015-09-10, 12:28 AM
Last Post: mvallevand
  NextPVR and XBMC are communicating, but no live tv Honkytonkman 1 1,750 2015-05-26, 01:22 AM
Last Post: pkscout
  XBMC & Genre smajor 25 13,655 2015-01-21, 06:12 AM
Last Post: EiEiOhh
  XBMC Recordings Art kmarq 9 3,971 2015-01-17, 10:00 PM
Last Post: mvallevand
  Issue with XBMC revolution21 13 5,774 2015-01-07, 09:43 PM
Last Post: headlearning
  Issues with xbmc on linux and NPVR plugin playing fm channels tuxman 0 1,992 2014-12-20, 07:38 PM
Last Post: tuxman

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

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

Linear Mode
Threaded Mode