Advertisement
Guest User

Untitled

a guest
Oct 28th, 2011
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. diff --git a/xbmc/music/infoscanner/MusicInfoScanner.cpp b/xbmc/music/infoscanner/MusicInfoScanner.cpp
  2. index 3400f27..85d2488 100644
  3. --- a/xbmc/music/infoscanner/MusicInfoScanner.cpp
  4. +++ b/xbmc/music/infoscanner/MusicInfoScanner.cpp
  5. @@ -358,7 +358,8 @@ bool CMusicInfoScanner::DoScan(const CStdString& strDirectory)
  6. // sort and get the path hash. Note that we don't filter .cue sheet items here as we want
  7. // to detect changes in the .cue sheet as well. The .cue sheet items only need filtering
  8. // if we have a changed hash.
  9. - items.Sort(SORT_METHOD_LABEL, SORT_ORDER_ASC);
  10. + //items.Sort(SORT_METHOD_LABEL, SORT_ORDER_ASC);
  11. + items.Sort(SORT_METHOD_DATE, SORT_ORDER_ASC);
  12. CStdString hash;
  13. GetPathHash(items, hash);
  14.  
  15. @@ -376,8 +377,9 @@ bool CMusicInfoScanner::DoScan(const CStdString& strDirectory)
  16.  
  17. // filter items in the sub dir (for .cue sheet support)
  18. items.FilterCueItems();
  19. - items.Sort(SORT_METHOD_LABEL, SORT_ORDER_ASC);
  20. -
  21. + //items.Sort(SORT_METHOD_LABEL, SORT_ORDER_ASC);
  22. + items.Sort(SORT_METHOD_DATE, SORT_ORDER_ASC);
  23. +
  24. // and then scan in the new information
  25. if (RetrieveMusicInfo(items, strDirectory) > 0)
  26. {
  27. diff --git a/xbmc/video/VideoInfoScanner.cpp b/xbmc/video/VideoInfoScanner.cpp
  28. index 0dfbbef..213b569 100644
  29. --- a/xbmc/video/VideoInfoScanner.cpp
  30. +++ b/xbmc/video/VideoInfoScanner.cpp
  31. @@ -290,6 +290,8 @@ namespace VIDEO
  32.  
  33. if (!bSkip)
  34. {
  35. + // make sure we scan info according to the file creation date so it mirrors the source directory
  36. + items.Sort(SORT_METHOD_DATE,SORT_ORDER_ASC);
  37. if (RetrieveVideoInfo(items, settings.parent_name_root, content))
  38. {
  39. if (!m_bStop && (content == CONTENT_MOVIES || content == CONTENT_MUSICVIDEOS))
  40.  
  41.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement