MePo Tools - Download ClearArt/CDArt/ClearLogos, Music Video clips and more! (12 Viewers)

kiwijunglist

Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    can'ttest right now. btw i posted plugin on our Facebook page.did you like mad men?
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,039
    11,112
    Kyiv
    Home Country
    Ukraine Ukraine
    I came up with something, we save all downloaded files with their names (the mask), and ID.
    Metallica - Enter Sandman.avi = 6a0AjKypMYU
    Next time you start, look if the file is and its the same ID then skip if you download the ID of another, if the ID is not present, or knit, or simply download the record ID. And add the ability to view the list, with options for editing (delete one record, delete all the entries.)

    Only here for a mask %artist%\%artist% - %track%.avi save the file name that is %artist% - %track%.avi, or all?[DOUBLEPOST=1374128469][/DOUBLEPOST]^^edited :D
     
    Last edited:

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,039
    11,112
    Kyiv
    Home Country
    Ukraine Ukraine
    Option with comparing the old and new IDs will take longer and use more traffic. Possible to replace it with the old one, ie keep all that was loaded, and just see if the file is not present and we loaded it, then skip. If it is then skip if no load and save a note.

    Well, or enter an option on the update has already been loaded if the ID is different, and then we proceed in the algorithm that I described above. But it will require more time and traffic.
     
    Last edited:

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    AJS said:
    F=File exist, Y=Stored Youtube ID exist, SkipAlready and UpdateAlready new options:

    IF:

    F:0 Y:1 SkipAlready:1Then Skip
    F:1 Y:0Then Write Youtube ID and Skip
    F:1 Y:1 SkipAlready:0 UpdateAlready:1Then Skip

    ELSE Download.
    ^ That is good. well planned.
     
    Last edited:

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,039
    11,112
    Kyiv
    Home Country
    Ukraine Ukraine
    ^ That is good. well planned.
    I have a large number of clips in a very good quality, if you do as suggested, changing the video links on the page last.fm, I'll lose them. I think it is necessary to dwell on the what if charged, and then removed, and the ID has changed then the load, otherwise miss. If the file is there, then let it lie there, and it can not be overwritten.[DOUBLEPOST=1374134696][/DOUBLEPOST]File exist - skip
    File not exist and ID exists skip
    File not exists and ID not exists download
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,039
    11,112
    Kyiv
    Home Country
    Ukraine Ukraine
    Did so:
    Code:
    If FileExists
      Then
    	  WriteToLog(llDebug,'  Last.fm [SE-]: '+Target+' already have.') ; Skip
     
    If (Not YouTubeUpdateAlready and (File not Exists) and (Youtube ID exists)
      Then
    	  WriteToLog(llDebug,'  Last.fm [SDN]: '+Target+' removed, ID '+Trim(YouTID)+' in the downloaded list.') ; Skip
    ...
    Get New Youtube ID
    ...
    If YouTubeUpdateAlready and (File not Exists) and (Old YouTube exists)
      Then
    	If Old YouTube exists = New YouTube exists)
    	  Then
    		  WriteToLog(llDebug,'  Last.fm [SDU]: '+Target+' removed, ID '+Trim(YouTID)+' in the downloaded list.') ; Skip
     

    Users who are viewing this thread

    Top Bottom