Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.

View Entry Info: Renaming saved recording needs exit from that directory to get title changed (MovieSelection.py)

Category:
Possible Bug
What ViX Image build number are you using?
Please provide your ViX Team image build number. Menu > Information > About > Build number > ENTER THIS NUMBER e.g. 4.2.028
5.4.015
Have you tried a flash WITHOUT settings restore?
Have you tried this? PLEASE SELECT YES OR NO.
No
Have you tried a flash WITH settings restore?
Have you tried this? PLEASE SELECT YES OR NO.
No
Attachments
Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 31

Thread: Renaming saved recording needs exit from that directory to get title changed (MovieSelection.py)

  1. #16
    Willo3092's Avatar
    Title
    ViX Beta Tester
    Join Date
    Oct 2016
    Location
    East Midlands
    Posts
    1,067
    Thanks
    752
    Thanked 403 Times in 303 Posts
    Quote Originally Posted by ccs View Post
    Something very similar (same crash) was fixed 4 days ago by this commit, (Setting yellow button to "toggle mark" in movielist) ....
    Yes 5.4.015 - That commit works for me now thanks

  2. #17
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    Quote Originally Posted by ccs View Post
    Aren't movielist collections an option?

    For example, I have recordings of "Lewis" and "New: Lewis", so there are 2 collections.

    I'm looking for 1 collection (probably called "New: Lewis"), with both "Lewis" and "New: Lewis" showing in that one collection.

    "New:" could be a configurable option.
    I've found an easy way of doing this.

    Go into a collection and mark every entry using the zero key.

    Then menu gives you the option to rename the programme, allowing you to add or remove New: for the whole collection in one go.

  3. The Following User Says Thank You to ccs For This Useful Post:

    Willo3092 (24-11-21)

  4. #18

    Title
    Member
    Join Date
    Mar 2014
    Location
    Ireland, Dromiskin
    Posts
    91
    Thanks
    53
    Thanked 19 Times in 13 Posts
    @CCS: I'm glad that works for batch renaming.

    The original question though:to see a renamed recording with that changed name, you have to go out of the movie-list and back in, or to a different directory and back, I have not seen tackled/adressed.
    I'm now at OpenVIX 6.0.003 and using the Magic-FHD skin, but this not-refreshing of the list has been "off" since somewhere 5.4.008 or so.
    The, for me, strange thing is that it does refresh and show the changed name when renaming a directory.
    Maybe that last part can help determine if and where some code is missing.
    Current: Vu+ Ultimo 4K - 1Tb HDD, 8Tb USB, 8Tb USB, 6Tb USB (all powered)
    ___________Astra 19.2 and 28.2 East, both with Unicable-II LNB

  5. #19
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,793
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    Quote Originally Posted by LbCwby View Post
    The, for me, strange thing is that it does refresh and show the changed name when renaming a directory.
    Maybe that last part can help determine if and where some code is missing.
    I'll have a look. Easy to reproduce this.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  6. #20
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,793
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    My first suspicion is that renaming a directory actually renames the directory. So it gets visibly changed.

    Renaming a recording just involves changing the title in the *.meta file. Somehow need to invalidate the whole current list.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  7. #21
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,793
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    I appear to have have a solution.

    Basically the renameCallback() has to assume it has renamed things and hence they may need to be resorted (not just redisplayed). Hence it needs to reload() the data after the renames (which might be a list of them).

    Try this version of Screens/MovieSelection.py and see whether it works for you.

    MovieSelection.zip

    It does leave you on the same index in the list, rather than move with a renamed item, but since you might be renaming multiple items at once this will need to do.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  8. The Following 2 Users Say Thank You to birdman For This Useful Post:

    LbCwby (03-12-21)

  9. #22
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    If I rename a recording in the top level of movielist, it leaves me with that renamed recording highlighted.

    If I rename a recording stored in a "real" folder, it leaves me with that renamed recording highlighted in the "real" folder.

    If I rename a recording inside a "collection", it returns to movielist, highlighting the first entry after deleted items (based on "sort by date").

    If I rename that recording back to the "collection" name, the "collection" in movielist is then left highlighted.
    Last edited by ccs; 02-12-21 at 16:15.

  10. The Following User Says Thank You to ccs For This Useful Post:

    LbCwby (03-12-21)

  11. #23
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,793
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    Quote Originally Posted by ccs View Post
    If I rename a recording ....
    But did it fix the issue of immediately displaying the changed name?

    f I rename a recording inside a "collection", it returns to movielist, highlighting the first entry after deleted items (based on "sort by date").
    • What is a "collection"?
    • Why/how do you have deleted items in a a movielist (that isn't .Trash)?
    • Is "sort by date" your normal sort method?
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  12. #24
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    Quote Originally Posted by birdman View Post
    But did it fix the issue of immediately displaying the changed name?


    • What is a "collection"?
    • Why/how do you have deleted items in a a movielist (that isn't .Trash)?
    • Is "sort by date" your normal sort method?
    I've said this before, why do I bother.

  13. #25
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    Quote Originally Posted by birdman View Post
    But did it fix the issue of immediately displaying the changed name?
    Yes, here's me thinking "renamed recording" meant the name of the recording after it had been renamed.

    Quote Originally Posted by birdman View Post
    • What is a "collection"?
    A standard ViX feature for organising recordings of the same name into "pseudo" folders of the same name, mentioned in 6 posts in this thread.

    Try it, it can be switched off just as easily, with no changes what so ever to /media/hdd/movie.

    Quote Originally Posted by birdman View Post
    • Why/how do you have deleted items in a a movielist (that isn't .Trash)?
    When I delete a recording it goes into "Deleted items", like everyone else, I'd imagine. That's why I used it as a reference to where the highlighted entry was.

    Quote Originally Posted by birdman View Post
    • Is "sort by date" your normal sort method?
    It's the default, which I haven't changed.
    Last edited by ccs; 02-12-21 at 19:52.

  14. The Following User Says Thank You to ccs For This Useful Post:

    LbCwby (03-12-21)

  15. #26

    Title
    Member
    Join Date
    Mar 2014
    Location
    Ireland, Dromiskin
    Posts
    91
    Thanks
    53
    Thanked 19 Times in 13 Posts
    Thank you Birdman and CCS, for looking into it, finding a solution and testing it.
    I imagine this new version will then be included in the next update.


    PS: I'm sure Birdman just wanted to be thorough and certain you both were talking about the same thing. So, thank you CCS for taking the time afterwards to confirm that.
    It is so easy to be misunderstood, as even the most easy wording, heard by a person with different experiences, can mean something else to that person.
    Thank you both !!!
    Current: Vu+ Ultimo 4K - 1Tb HDD, 8Tb USB, 8Tb USB, 6Tb USB (all powered)
    ___________Astra 19.2 and 28.2 East, both with Unicable-II LNB

  16. The Following User Says Thank You to LbCwby For This Useful Post:

    ccs (03-12-21)

  17. #27
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,793
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    Quote Originally Posted by ccs View Post
    If I rename a recording inside a "collection", it returns to movielist, highlighting the first entry after deleted items (based on "sort by date").
    OK. I now understand what you mean by this.

    As for collections - I'd never used them, as I've always put recordings into a suitably named "category" directory. However, having turned them on (on a same-directory basis) it does tidy up the display.
    I think I'll leave them on...

    Yes, it jumps to the top of that directory list after a rename. Although it might not be the top. If you multi-select n files for renaming it ends up item n.
    I'll see what can be done...
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  18. The Following User Says Thank You to birdman For This Useful Post:

    ccs (03-12-21)

  19. #28
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,793
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    Is this one any better?

    MovieSelection.zip

    This should leave you within a collection (even when you select and rename them all so that it actually no longer exists).

    There does seem to be a limitation in what can be (reasonably) done.

    There seems to be no way to track an individual item on the list, only a way to remember the index (how far "down" the list you are).

    But at least this does display the new name.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  20. The Following User Says Thank You to birdman For This Useful Post:

    Willo3092 (04-12-21)

  21. #29
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    ... yes, that looks ok.

    If you rename a programme in a collection, you remain in that collection.

    If you rename a programme which ends up in a collection, you remain where you where before renaming it.

    Moving (renaming) files from one collection to another also does what you'd expect.

  22. The Following User Says Thank You to ccs For This Useful Post:

    birdman (04-12-21)

  23. #30
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,793
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    Quote Originally Posted by ccs View Post
    ... yes, that looks ok.
    I'll submit a PR for that then.
    Thanks...
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.