My Films 5 - AMC Updater (1 Viewer)

Status
Not open for further replies.

Guzzi

Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,159
    750
    The first (easy) issue would be the possibility to set the location and name of the default AMCU config xml file, which will be used from AMCU and MePo,
    Right - but I just had a look in the code and found, that the setting you mentioned above does exactly that already - but only when launching global import from MyFilms GUI. Can you confirm that? So what you're asking for is that launching AMCupdater from MyFilms setup via the launch button also uses that config?
    and the second (harder) issue would be the possibility to run custom configs from the MePo interface ?
    Yes.
     

    dmon

    Portal Member
    May 9, 2006
    20
    1
    Another, new question. Sorry. :)
    If I have multi page results, in AMCU I can't select the next page, and can't get back all of the results.
    You can try it with my PortHU-Imdb garbber with the film title "tron", naturrally the good result would be on the second page.

    There are 96 results from the search page :
    http://www.port.hu/pls/ci/films.film_list?&i_page=0&i_text=tron
    http://www.port.hu/pls/ci/films.film_list?&i_page=1&i_text=tron

    In MePo, I can select the good result so I think the garbber is correct, but I'm not sure.
     

    dmon

    Portal Member
    May 9, 2006
    20
    1
    Right - but I just had a look in the code and found, that the setting you mentioned above does exactly that already - but only when launching global import from MyFilms GUI. Can you confirm that? So what you're asking for is that launching AMCupdater from MyFilms setup via the launch button also uses that config?

    I think there should be an optional location and name for the default AMCU config like this :

    amcuSettings3_www.kepfeltoltes.hu_.jpg


    And this default config should be used from anywhere.
    I think this location and file name entry should be in the MyFilms.xml config file.
     

    Guzzi

    Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,159
    750
    I think there should be an optional location and name for the default AMCU config like this :

    amcuSettings3_www.kepfeltoltes.hu_.jpg


    And this default config should be used from anywhere.
    I think this location and file name entry should be in the MyFilms.xml config file.
    This setting IS used when used from MePo/MyFilms GUI - so the setup GUI is confusing, as the impression is, that it is only for scheduler setting - plus the AMCUpdater launch button did not use it in the past.
    I will move this setting outside the "scheduler" box and also change AMCupdater launch button to use that setting - instead of always using the MePo dir.
    When creating new config via wizard, it will be preset to MePo data dir - users can change that setting then e.g. to their shared server dir.
    Yes, this setting is part of MyFilms.xml.
     

    Guzzi

    Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,159
    750
    Another, new question. Sorry. :)
    If I have multi page results, in AMCU I can't select the next page, and can't get back all of the results.
    You can try it with my PortHU-Imdb garbber with the film title "tron", naturrally the good result would be on the second page.

    There are 96 results from the search page :
    http://www.port.hu/pls/ci/films.film_list?&i_page=0&i_text=tron
    http://www.port.hu/pls/ci/films.film_list?&i_page=1&i_text=tron

    In MePo, I can select the good result so I think the garbber is correct, but I'm not sure.
    Can you post the grabber - you posted "Kritikus...." before ...
     

    dmon

    Portal Member
    May 9, 2006
    20
    1
    This setting IS used when used from MePo/MyFilms GUI - so the setup GUI is confusing, as the impression is, that it is only for scheduler setting - plus the AMCUpdater launch button did not use it in the past.
    I will move this setting outside the "scheduler" box and also change AMCupdater launch button to use that setting - instead of always using the MePo dir.
    When creating new config via wizard, it will be preset to MePo data dir - users can change that setting then e.g. to their shared server dir.
    Yes, this setting is part of MyFilms.xml.
    Ok, with this modification the AMCU started from MePo GUI, and AMCU started with "Launch AMC Updater" button from Myfilms Setup will use the same (optional) config file.
    And is it possible that if I start the AMCU from the desktop icon, it also use the same config file without the need of command line parameters ? I think this would be the logical behaviour, if somebody change the default config filename and location, he think that it will be used from anywhere.
     

    Guzzi

    Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,159
    750
    Ok, with this modification the AMCU started from MePo GUI, and AMCU started with "Launch AMC Updater" button from Myfilms Setup will use the same (optional) config file.
    And is it possible that if I start the AMCU from the desktop icon, it also use the same config file without the need of command line parameters ? I think this would be the logical behaviour, if somebody change the default config filename and location, he think that it will be used from anywhere.
    I agree, that would be expected behaviour. I changed code now so when (re)creating AMCupdater Desktop icon it will use the same config as in GUI and with Launch button (note: there is always a command line behind that, it's just preconfigured for the desktop icon).
    Thus - when creating a config from scratch, the icon will use config file in MePo dir. If user afterwards changes the config (chooses a different one in the options), he has to recreate the desktop icon - that will update the desktop icon to use the changed settings. Will add that info to the tooltip of the optional config setting.
     

    Guzzi

    Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,159
    750
    Another, new question. Sorry. :)
    If I have multi page results, in AMCU I can't select the next page, and can't get back all of the results.
    You can try it with my PortHU-Imdb garbber with the film title "tron", naturrally the good result would be on the second page.

    There are 96 results from the search page :
    http://www.port.hu/pls/ci/films.film_list?&i_page=0&i_text=tron
    http://www.port.hu/pls/ci/films.film_list?&i_page=1&i_text=tron

    In MePo, I can select the good result so I think the garbber is correct, but I'm not sure.
    ok, I checked the code to understand, how that "paging" is supposed to work:
    In your example, you'd have to put into Page Keys - "Next Page" e.g. something like:
    &i_dist_id=-1&i_page=#Page#
    It is the pattern to be found in the page that is indicating, that there is a following page available.
     

    dmon

    Portal Member
    May 9, 2006
    20
    1
    ok, I checked the code to understand, how that "paging" is supposed to work:
    In your example, you'd have to put into Page Keys - "Next Page" e.g. something like:
    &i_dist_id=-1&i_page=#Page#
    It is the pattern to be found in the page that is indicating, that there is a following page available.
    There is #Page# variable already there, near the end of the URL.

    Page1_www.kepfeltoltes.hu_.jpg


    And it's working in Grabber Configuration and MePo GUI, but doesn't works in AMCU for me.
    You can check it in Grabber Configuration with my grabber, if you change the value of #Page# variable from 0 to 1, and ask a new Preview, you will get the results from the second page.

    Page2_www.kepfeltoltes.hu_.jpg
     
    Status
    Not open for further replies.

    Users who are viewing this thread

    Top Bottom