Changeset 491 for trunk/Update Podcasts
- Timestamp:
- 02/16/09 06:24:38 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Update Podcasts/update_podcasts.py
r489 r491 7 7 import htmlentitydefs 8 8 import re 9 import sys 9 10 import time 10 11 … … 82 83 iTunes.playlists[its.special_kind == AEEnum('kSpP')].reveal() 83 84 podcast_status = iTunes_main_pane().outlines[1].rows.static_texts[1].value 84 while u'queued for download' in podcast_status.get(): 85 while any(status in (u'downloading', u'queued for download') 86 for status in podcast_status.get()): 85 87 time.sleep(0.5) 86 88 … … 94 96 if __name__ == '__main__': 95 97 iTunes = app('iTunes') 96 iTunes.updateAllPodcasts() # start downloading97 iTunes.update() # sync iPod98 print >> sys.stderr, 'Synchronizing iPod...' 99 iTunes.update() 98 100 wait_for_iPod_update(iTunes) 101 print >> sys.stderr, 'Updating podcasts...' 99 102 iTunes.updateAllPodcasts() 100 103 wait_for_podcast_update(iTunes) 104 print >> sys.stderr, 'Copying podcast descriptions to lyrics...' 101 105 podcasts_to_lyrics(iTunes) 102 106 iTunes.update()
Note:
See TracChangeset
for help on using the changeset viewer.