Keep reference to files... not working correctly. (1 Viewer)

Gixxer

Retired Team Member
  • Premium Supporter
  • August 18, 2007
    1,383
    41
    40
    Spain
    Home Country
    Spain Spain
    Hi i think the option "Keep reference to files that no longer available on computer" under the menu "General" is not working 100% correctly.

    What i have noticed is that if u have one file inside a folder and you move it to another folder within the set import directory. it will create another entry in to show inside tvseries.

    however when you click entry1 it will say to insert the disk as it will not find it. you will have to select the other entry2 in tvseries that is pointing to the new location of the file for it to work

    i hope its clear, i can try to explain better if not.

    hope some dev can look into it as i have 2 and even 3 entries for a show that has been moved around directories. but only one entry works inside tvseries.

    :D


    edit. im doing some more test and having strange results. if i dont check the "keep referennce...." there should be not prompt for "insert a disk" at all right?
     

    marvenius

    Portal Pro
    September 3, 2008
    523
    47
    Belgium
    Home Country
    Netherlands Netherlands
    the "keep reference" setting is just as you described: the original file has been moved, the original location is no longer available on your computer, but you want to keep the reference, hence there is a non-working link in the GUI. Since you moved inside the watched folder structure, it recognizes the file as a new entry. A new working link appears in the GUI.
    If you disable the feature (keep reference...) it should delete the entry from the DB and remove the entry from displaying in the GUI.
     

    Gixxer

    Retired Team Member
  • Premium Supporter
  • August 18, 2007
    1,383
    41
    40
    Spain
    Home Country
    Spain Spain
    the "keep reference" setting is just as you described: the original file has been moved, the original location is no longer available on your computer, but you want to keep the reference, hence there is a non-working link in the GUI. Since you moved inside the watched folder structure, it recognizes the file as a new entry. A new working link appears in the GUI.
    If you disable the feature (keep reference...) it should delete the entry from the DB and remove the entry from displaying in the GUI.

    well the thing is that i have the option disabled. so i understand that i should not get any message saying "insert disk" and no invalid entries should appear,right?

    thats why i am saying something is possible wrong
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,755
    7,200
    Sydney
    Home Country
    Australia Australia
    Your probably getting Insert Disk as you set that Import path to Removable ...this is something you typically do with a DVD Drive. Setting import path as removable also keeps reference to file.
     

    pgjensen

    Portal Pro
    May 1, 2008
    186
    7
    Your probably getting Insert Disk as you set that Import path to Removable ...this is something you typically do with a DVD Drive. Setting import path as removable also keeps reference to file.

    I am having the same problem and used "removable" option in import path for my network drives (on drive letter permanent mounts). Do I have this wrong? i.e. I should enable the "Keep reference to files that are no longer available on computer" and don't set the entire mount point as removable for a storage network setup?

    If the entire network drive is offline, then, will the episodes not be deleted? What if the mount point is online and only a few episodes are deleted (intended)? Will those go away?

    My current setup (mount point removable, keep references disabled) will not get rid of files i delete from my mount points. I have to manually do it. I am just too scared to change these settings and have half my database removed when I get a hiccup in my server or have to take a network mount down for repair/maintenance.
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,755
    7,200
    Sydney
    Home Country
    Australia Australia
    My current setup (mount point removable, keep references disabled) will not get rid of files i delete from my mount points. I have to manually do it. I am just too scared to change these settings and have half my database removed when I get a hiccup in my server or have to take a network mount down for repair/maintenance.

    You only want 'Removable' flag for DVD Media or USB HDDs, if memory serves me the importer gets the Volume\Drive label so that this can be prompted to the user when the media is attempted to be played but does not exist.

    If this is enabled you need to manually remove episodes or remove the corresponding import path.

    I have never used this functionality before as all my episodes are on a NAS. So dont quote me on it, I didnt write this part of the code nor touched it.

    Since your episodes are on a mapped network drive you dont want to enabled 'Removable', instead enable 'Keep Reference to files...' This option will not remove references to the files in the database if the mapped drive is inaccessible e.g. the network connection is down of the server is down.

    'Keep reference to unavailable files...' will not check for files that have been removed whilst the plugin was disabled. In this case you need to manually remove them, this may have been by design but I think it should be changed to remove the files if the import path is available and the files no longer exist.

    If you have a server/nas that is on 24/7 there should be no need to enable this option unless you have a dodgy network or bad drivers that may prevent you connecting immediately after reboot/resume....if on the freak chance that your 2 yr old turns off your NAS ensure you have regular backups.

    Since you are worried about making the change, why don't you simply backup your database and copy it back if all goes wrong. You can always just test with an import part pointing to a few episodes for testing.
     

    Gixxer

    Retired Team Member
  • Premium Supporter
  • August 18, 2007
    1,383
    41
    40
    Spain
    Home Country
    Spain Spain
    ltfearme i also have a server 24/7 with all media. removable set to disabled and keep reference enabled.

    however i still get the Insert disk message whenever i move one file on the server pc. so i end up with a database full of repeated entries.

    reason i have keep reference enabled is because sometimes i disconnect my laptop from the network cable in order to move it to another place
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,755
    7,200
    Sydney
    Home Country
    Australia Australia
    ltfearme i also have a server 24/7 with all media. removable set to disabled and keep reference enabled.

    however i still get the Insert disk message whenever i move one file on the server pc. so i end up with a database full of repeated entries.

    reason i have keep reference enabled is because sometimes i disconnect my laptop from the network cable in order to move it to another place

    Did you at any time during the initial import have removable enabled and then later change it? If so you may need to clear the db and re-import.

    I think the way this is handled needs to be re-visited, I may take a look at a later date if someone doesnt beat me too it.
     

    Gixxer

    Retired Team Member
  • Premium Supporter
  • August 18, 2007
    1,383
    41
    40
    Spain
    Home Country
    Spain Spain
    ltfearme i also have a server 24/7 with all media. removable set to disabled and keep reference enabled.

    however i still get the Insert disk message whenever i move one file on the server pc. so i end up with a database full of repeated entries.

    reason i have keep reference enabled is because sometimes i disconnect my laptop from the network cable in order to move it to another place

    Did you at any time during the initial import have removable enabled and then later change it? If so you may need to clear the db and re-import.

    I think the way this is handled needs to be re-visited, I may take a look at a later date if someone doesnt beat me too it.

    i think i have not had it enabled never. however cant guarantee.

    i did do a clean db but problem reappeared.

    i will try to do some tests to it, however i do belief that a bit of rework in thsi section is required.
    thanks
     

    pgjensen

    Portal Pro
    May 1, 2008
    186
    7
    i went into the db and executed SQL to change paths removable=0 and the same on all local_episodes. i'll enable that other option now and see how it goes.
     

    Users who are viewing this thread

    Top Bottom