Giter Club home page Giter Club logo

Comments (5)

bpakodi avatar bpakodi commented on June 11, 2024

Another possibility would be to create a new class ImportForcedTask

I will basically take all NFOs, and reapply normal process

from service.nfo.sync.

bpakodi avatar bpakodi commented on June 11, 2024

Maybe we could add a return code to save_nfo(): True if actually saved, False if skipped

This way we could detect whether we should issue a refresh

from service.nfo.sync.

bpakodi avatar bpakodi commented on June 11, 2024

save_nfo() now returns True / False: 0e7466c

from service.nfo.sync.

bpakodi avatar bpakodi commented on June 11, 2024

also having a full export could be useful, to synchronize userrating for example, as we have no proper trigger to detect changes

from service.nfo.sync.

bpakodi avatar bpakodi commented on June 11, 2024

We could arrange a slightly different approach than the existing one:

  • create class ManualImportTask, whose process is basically:
    • for each of the entries in library, export without rebuilding to save the watched state
      • useful? Risky?
    • scan outdated NFOs (or all if param force is set)
    • for each of them, if XML is different, remove the entry from library
    • launch a library scan
    • optionally: launch a library clean-up
  • add action in settings (or real dialog?)
    • if possible, allow some params: force, ...

This could help wrapping the operations within a task, rather than asynchronously trigger many refreshes that we don't control.

from service.nfo.sync.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.