Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic configuration from another addon #740

Open
landgenoot opened this issue Apr 10, 2023 · 6 comments
Open

Automatic configuration from another addon #740

landgenoot opened this issue Apr 10, 2023 · 6 comments

Comments

@landgenoot
Copy link

landgenoot commented Apr 10, 2023

Some plugins, like service.iptv.manager, are able to configure iptvsimple automatically.
However, with the introduction multiple instances this is not possible anymore. As the settings are no longer in settings.xml.

What is your opinion on automatic configuration? Any ideas on how to create a new instance from another addon?

Related issues:
IPTV Simple multiple instances? #106
Autoconfigure IPTV Simple Client fails #107
IPTV Manager support #1674

@phunkyfish
Copy link
Member

phunkyfish commented Apr 10, 2023

It will need to wait until API support is added.
There is a workaround I think. @matthuisman what exactly did you do?

@matthuisman
Copy link
Contributor

matthuisman commented Apr 10, 2023

  1. disable iptv simple
  2. add the settings i require as normal using setSetting
  3. delete all instances .xmls
  4. restart iptv simple so it does the migration
  5. wait for an instance-1.xml to exist

I did just spot a comment where someone simple renamed settings.xml to instance-settings-1.xml and that worked, so that could be a simpler approach.

I originally had something less destructive (renaming current instances etc) but it didn't prove as reliable.
If they using iptv merge, they shouldn't need multi-instance anyway

Also, as we can no longer set settings of instances, there is no fast way to force IPTV Simple to refresh it's data.
So, I now just tell it to refresh itself every 10mins. m3uRefreshMode=1 and m3uRefreshIntervalMins=10

@landgenoot
Copy link
Author

landgenoot commented Apr 10, 2023

Would you recommend to implement this in code?
This destroys any other configuration the user might had before, right? (but that was also the case before multiple instances were introduced)

I like the workaround of renaming settings.xml. Renaming it to instance-settings-99.xml seems to work. This should not interfere with other configurations.

@matthuisman
Copy link
Contributor

I implemented that in code for IPTV Merge.
However - due to the destructive nature, I'm not sure the same change would be allowed in IPTV Manager?

@landgenoot
Copy link
Author

Thanks! IPTV Manager does not seem very active either.

Is IPTV Merge somewhere available now the Kodi forums are down? This repo does not seem active?

I am looking for a user friendly solution for Retrospect. Would it be possible to replace IPTV manager with IPTV merge (as it also uses the same method for querying channel lists and EPG). Why is IPTV Merge not in the official repository?

@matthuisman
Copy link
Contributor

matthuisman commented Apr 12, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants