XDM
XDM copied to clipboard
Some ideas of improvement
Hello,
I just give you some improvement ideas i have :
- login reset by command line : i lost my login/password and i don't find any function that reset the login functionnality (even if i reinstall XDM). Imo, a parameter in command line that delete login and password will be great.
- plugin setting verification/validation : for example, in the SABNZBD plugin, we can save a configuration that doesn't pass the connection test, imo it's not very logic. Bad settings should not to be save.
- category language (in order to have vf movies and vo movies) : is this possible to handle multiple language and, when we choose the right movie, choose if we want an English Audio or French Audio (or Deutch Audio), that use differents indexers/indexer instance in function of what language is choosed.
- download triggers (RSS ..) : does it possible to develop plugins that check RSS links and start downloads ?
- a little UI fix : a test connection that fail show a red error message but this message stay until we refresh the page. The green one works.
Thanks you. ;)
login reset by command line : i lost my login/password and i don't find any function that reset the login functionnality (even if i reinstall XDM). Imo, a parameter in command line that delete login and password will be great.
good idea will add a command line argument for it
plugin setting verification/validation : for example, in the SABNZBD plugin, we can save a configuration that doesn't pass the connection test, imo it's not very logic. Bad settings should not to be save.
- first it would be hard define a valid setting or what a plugin considers a valid setting with the current "framework" a plugin would need a
valid_setting
function this could default toTrue
if not overwritten by the plugin and is left to the developer of the plugin what to test - second this would not allow to configure the plugin without the internet connection if this is enforced
- third if the user would be notified that the plugin says the configuration did not pass and tell you why, that would be nice
category language (in order to have vf movies and vo movies) : is this possible to handle multiple language and, when we choose the right movie, choose if we want an English Audio or French Audio (or Deutch Audio), that use differents indexers/indexer instance in function of what language is choosed.
this would mean a language setting on the movie. i would use a download filter plugin for this then the indexer plugin would need to check that setting this means the indexer plugin would need to be aware of that "language" plugin there might be another solution but i don't see this now as of now i use the RegEx download filter plugin to exclude languages but this of course only uses the download name
download triggers (RSS ..) : does it possible to develop plugins that check RSS links and start downloads ?
this is planed and the indexer will have a getLatestRss
https://github.com/lad1337/XDM/blob/master/xdm/plugins/bases.py#L553
the issue with this is that each item has to be mapped to an element in XDM therefor parsing the name, category etc. this is not done at all right now. and it would need some kind of "mapper" plugin.
fyi when XDM starts a search on an indexer it considers each result to be a match for that searched element
a little UI fix : a test connection that fail show a red error message but this message stay until we refresh the page. The green one works.
this was by design ^^ ... you can click the error notification to remove it
first it would be hard define a valid setting or what a plugin considers a valid setting with the current "framework" a plugin would need a valid_setting function this could default to True if not overwritten by the plugin and is left to the developer of the plugin what to test second this would not allow to configure the plugin without the internet connection if this is enforced third if the user would be notified that the plugin says the configuration did not pass and tell you why, that would be nice
A notification when the user is saving settings, having internet connection and bad settings could be fine.
this is planed and the indexer will have a getLatestRss It's perfect, but when is call this function ? every X seconds ?
I'm wondering if a plugin that know what you downloads via XDM each day and check in a RSS if similar downloads appears to download them. (e.g. you have snatched/downloaded Iron man 1 & 2, the plugin see iron man 3 in the last uploaded torrent rss and download it)
this was by design ^^ ... you can click the error notification to remove it Oh, ok. so I will click on it ^^
Another point, I saw that each updated plugin let an old directory. It's quickly messy. It would be great that XDM remove old forder when a update success, or when it's shutting down.
It's perfect, but when is call this function ? every X seconds ?
right now it is never called / used eventually yes it will be called every x seconds like the other schedulers... but first the problem with matching the available downloads from the rss feed to the XDM element has to be solved
I'm wondering if a plugin that know what you downloads via XDM each day and check in a RSS if similar downloads appears to download them. (e.g. you have snatched/downloaded Iron man 1 & 2, the plugin see iron man 3 in the last uploaded torrent rss and download it)
this could be done yes ... with a media adder plugin ... it would be activated every x seconds (right now every 3 minutes, i think) and pull the rss do some querys over the XDM db ... maybe use the guessit libary to get the proper name then retrun and Media object https://github.com/lad1337/XDM/blob/master/xdm/plugins/bases.py#L719
XDM would then try to add this to its library and initialize a search ... i think this can be done already the limitation right now is that the media adder task https://github.com/lad1337/XDM/blob/master/xdm/tasks.py#L396 only uses the "externalID" which is the e.g. moviedb id ... but this could easily be extend with a name search fallback (well it has a few twist but its manageable)
Another point, I saw that each updated plugin let an old directory. It's quickly messy. It would be great that XDM remove old forder when a update success, or when it's shutting down.
yes that is true, either the garbage collector should clean this and maybe only leave the last 2 versions or the old versions should be moved in the backup folder. what would you prefer/suggest ?
fyi: if you want to chat XDM has an irc channel #xdm on irc.freenode.net
yes that is true, either the garbage collector should clean this and maybe only leave the last 2 versions or the old versions should be moved in the backup folder. what would you prefer/suggest ?
I prefere to move old versions in a backup folder. And maybe also delete very old versions..
I don't know if it possible, but it will be nice if failed plugin install (due to plugin error, e.g. a simple import error) delete the created plugin forlder. Or when a plugin is installed, if the folder already exists and the plugin corresponding to the folder isn't considerate as installed, this folder is deleted and the plugin do its install correctly. (At least in the dev version).
I don't know if i'm really clear.
fyi: if you want to chat XDM has an irc channel #xdm on irc.freenode.net
Ok thanks you :)
I'm wondering if download filter only filter one by one or sort and choose the first to download ?
It will be great that filter receive a list a download (direct from indexer) and the filter choose the best download. My idea : A filter plugin where we can set weight on words (e.g. FRENCH 10 points, TRUEFRENCH 20 points, 1080p 15 points, 720p 10 points... in order to prefere 720p TRUEFRENCH to 1080p FRENCH if i want to). It can be use with languages and qualities.