1 7 8 9 10 11 Previous Next 159 Replies Latest reply: Feb 18, 2014 4:12 AM by sjbtax Go to original post Branched to a new discussion.
  • 120. Re: TV episdodes for purchased seasons have stopped downloading. Check for Available Downloads is broken.
    J. Tuttle Level 1 Level 1 (5 points)

    @davidsignal: Would you please share your (Apple?) Script for reading the link inside the email message, and kicking off the automatic download?  I too would love to get automatic downloads working again, through a combination of Mail rules and AppleScript.

  • 121. Re: TV episdodes for purchased seasons have stopped downloading. Check for Available Downloads is broken.
    jramirez1918 Level 1 Level 1 (0 points)

    Frankly this stinks.  I have to search out my shows and figure out if they have new episodes now.  What a pain.  If I'm not able to conveniently download maybe it's time to put my Amazon Prime membership to good use.  Same costs, more portability.

  • 122. Re: TV episdodes for purchased seasons have stopped downloading. Check for Available Downloads is broken.
    davidsignal Level 3 Level 3 (525 points)

    J. Tuttle,

    Sure, but you may have to do some slight modifications for your own purposes.  First, the script requires that you have mail running on whatever system you use for storing your iTunes downloads.  Second, my script gets my iTunes password from the OSX keychain in the event that iTunes asks for it before downloading (it doesn't always ask for the password, but I would rather that the script could get it if it happens so that my new episodes are downloaded when I come home from work).   To do this, I have created a new item in the Login keychain called "iTunes Login" and put my iTunes password there.  You can access keychain items from applications-->utilities-->keychain access.   You could also just put your password directly in the script instead of getting it from the keychain, but this would be storing your password in plaintext.

     

    The last thing is that I have a mail rule to run this:  if sender contains do_not_reply@itunes.com  AND subject contains available

    Run Applescript - Get Available Purchases 3.0

     

    I haven't been able to test this for more than 2 episodes, so I don't know if it is perfect yet, but it seems to work great at this point in time (it will probably continue working until Apple again changes the download functionality... this is my 3rd version of the script).  There are some built-in delays to ensure a successful download.  It takes about 30 seconds for the script to run completely.

     

    Here it is - Get Available Purchases 3.0


    using terms from application "Mail"

              on perform mail action with messages theMessages

                        repeat with eachMessage in theMessages

      getEpisode(eachMessage)

                        end repeat

              end perform mail action with messages

    end using terms from

     

    on getEpisode(eachMessage)

              tell application "Mail"

                        set myMessage to source of eachMessage

                        set start to offset of "https://buy.itunes.apple.com/" in myMessage

                        if start ≠ 0 then

                                  set theLength to length of myMessage

                                  set addr to characters start through theLength of myMessage as string

                                  set addyEnd to offset of "&mt=" in addr

                                  set addyEnd to addyEnd + 7

                                  set addr to characters 1 through addyEnd of addr as string

                                  if length of addr > 7 then

                                            tell me to set fixedAddress to fixTheText(addr)

                                            my openWeb(fixedAddress)

                                            my iTunesDL()

                                  end if

                        end if

              end tell

    end getEpisode

     

    on fixTheText(someText)

              set someText to someText as text

              tell application "Finder"

                        set someText to do shell script ("echo " & quoted form of someText & " | sed 's/=3D/@/g'")

                        delay 0.5

                        set someText to do shell script ("echo " & quoted form of someText & " | sed 's/=//g'")

                        delay 0.5

                        set someText to do shell script ("echo " & quoted form of someText & " | sed 's/@/=/g'")

              end tell

              set theLines to TextToList(someText, return)

              set trimChars to {" ", ASCII character 9}

              repeat with aLine in theLines

                        set lineLen to length of aLine

                        set startPos to 1

                        set foundEOFwd to false

                        repeat while not foundEOFwd and startPoslineLen

                                  set theChar to text startPos thru startPos of aLine

                                  if not (trimChars contains theChar) then

                                            set foundEOFwd to true

                                  else

                                            set startPos to startPos + 1

                                  end if

                        end repeat

                        set contents of aLine to text startPos thru -1 of aLine

                        set endPos to length of aLine

                        set foundEOFwd to false

                        repeat while not foundEOFwd and endPos ≥ 1

                                  set theChar to text endPos thru endPos of aLine

                                  if not (trimChars contains theChar) then

                                            set foundEOFwd to true

                                  else

                                            set endPos to endPos - 1

                                  end if

                        end repeat

                        set contents of aLine to text 1 thru endPos of aLine

              end repeat

              set someText to ListToText(theLines, "")

              return (someText)

    end fixTheText

     

    on TextToList(theText, theDelimiter)

              set saveDelim to AppleScript's text item delimiters

              try

                        set AppleScript's text item delimiters to {theDelimiter}

                        set theList to every text item of theText

              on error errStr number errNum

                        set AppleScript's text item delimiters to saveDelim

                        error errStr number errNum

              end try

              set AppleScript's text item delimiters to saveDelim

              return (theList)

    end TextToList

     

    on ListToText(theList, theDelimiter)

              set saveDelim to AppleScript's text item delimiters

              try

                        set AppleScript's text item delimiters to {theDelimiter}

                        set theText to theList as text

              on error errStr number errNum

                        set AppleScript's text item delimiters to saveDelim

                        error errStr number errNum

              end try

              set AppleScript's text item delimiters to saveDelim

              return (theText)

    end ListToText

     

    on openWeb(pageAddress)

              tell application "Safari"

      open location pageAddress

              end tell

    end openWeb

     

    on iTunesDL()

      activate application "iTunes"

              tell application "System Events" to tell process "iTunes"

      activate

                        delay 10

                        if button "Download" of window 1 exists then

                                  click button "Download" of window 1

                        end if

                        set keepgoing to "true"

                        repeat until keepgoing is equal to "false"

                                  delay 10

                                  if text field 2 of window 1 exists then

                                            tell me to set passwd to getPW("iTunes Login")

                                            set value of text field 2 of window 1 to passwd

      keystroke return

                                  else

                                            set keepgoing to "false"

                                  end if

                        end repeat

              end tell

    end iTunesDL

     

    on getPW(searchName)

              do shell script "security 2>&1 >/dev/null find-generic-password -gs " & quoted form of searchName & " | awk '{print $2}'"

              return (text 2 thru -2 of result)

    end getPW


  • 123. Re: TV episdodes for purchased seasons have stopped downloading. Check for Available Downloads is broken.
    John Whiteside Level 2 Level 2 (345 points)

    Here's another quirk - I just got an email telling me that the latest episode of Mad Men was available. When I clicked the link, it downloaded the featurette about last night's episode, but not the episode itself. Apparently when you have more than one episode waiting (Mad Men gives you two item a week - the episode and the featurette), it only downloads one of them. So now your "season pass" makes it easy to miss episodes if you're not paying attention.

     

    Apple has certainly mucked up something that used to "just work" on this one. I hope someone there is seeing these discussions.

  • 124. Re: TV episdodes for purchased seasons have stopped downloading. Check for Available Downloads is broken.
    davidsignal Level 3 Level 3 (525 points)

    John, it definitely is an issue, but I was just wondering if possibly you received two emails (one for each of the two new episodes) and it only appeared as one because the mail client has probably grouped all of the messages from the mad men series?

     

    I am just wondering, because it seems like the links are per-episode, so you either should have received an email with 2 links (doubtful) or 2 separate emails.

     

    Obviously, the check for downloads which just downloaded anything available was easier.  I wouldn't count on it getting changed back though.  Apple has been implementing this new method since March.

  • 125. Re: TV episdodes for purchased seasons have stopped downloading. Check for Available Downloads is broken.
    John Whiteside Level 2 Level 2 (345 points)

    Hi David... the same thought occurred to me, so I checked. No, just one message with a very generic link saying to download "the latest episode" (didn't refer to it by title or anyting). So it seems it downloads the latest, even if you haven't downloaded or watched earlier ones.

  • 126. Re: TV episdodes for purchased seasons have stopped downloading. Check for Available Downloads is broken.
    GadgetJohn Level 1 Level 1 (0 points)

    Clicking the clink is such a poor substitute with the biggest problem being I don't have an email client on my iTunes machine.  That means I have to search through purchases and I do mean 'search'. I have hundreds of TV shows 'featurettes' and 'previews' that I don't want cluttering up my iTunes storage and have deleted from my local system.  So every time I go into Purchases I have to figure out which show really has new episodes.  And again nothing downloads for the family to watch if I'm away from home.  The only solution I see is to rely on the cable DVR for current shows and buy the DVD when it comes out.  Apple you've broken what used to be a great ecosystem....

  • 127. Re: TV episdodes for purchased seasons have stopped downloading. Check for Available Downloads is broken.
    darquiel Level 1 Level 1 (0 points)

    I am also having the same problem.

    The only way I can get teh episodes to download to manually look at what is avaliable within the store.
    and then individually download the episodes.

     

    Very Frustrating!

  • 128. Re: TV episdodes for purchased seasons have stopped downloading. Check for Available Downloads is broken.
    AbsolutGrndZer0 Level 1 Level 1 (40 points)

    GadgetJohn wrote:

     

    Clicking the clink is such a poor substitute with the biggest problem being I don't have an email client on my iTunes machine.  That means I have to search through purchases and I do mean 'search'. I have hundreds of TV shows 'featurettes' and 'previews' that I don't want cluttering up my iTunes storage and have deleted from my local system.  So every time I go into Purchases I have to figure out which show really has new episodes.  And again nothing downloads for the family to watch if I'm away from home.  The only solution I see is to rely on the cable DVR for current shows and buy the DVD when it comes out.  Apple you've broken what used to be a great ecosystem....

    Well, you CAN (at least on the computer) hide items you don't want to download.  Bring up the "episodes" list instead of the album where it's just a bunch of text on a list.  Then to the right of the "Download" button you will see an X.  Press it, it will deleted the purchased item from your list.  BUT it's not gone forever!   You can go into "Account" settings you will see like "You have 12 hidden purchases" and a button to restore them all.

     

    As for the thing about multiple episodes, yeah I just had that with Revenge, Season 2.  They put "Truth, Pt. 1" and "Truth, Pt. 2" as separate episodes (even though they aired the same night) on iTunes so it only downloaded Part 1, I had to go into the Purchased tab and manually download Part 2.

     

    Arrrrgh.

  • 129. Re: TV episdodes for purchased seasons have stopped downloading. Check for Available Downloads is broken.
    GadgetJohn Level 1 Level 1 (0 points)

    Good tip regarding the X. Thank you!

  • 130. Re: TV episdodes for purchased seasons have stopped downloading. Check for Available Downloads is broken.
    AbsolutGrndZer0 Level 1 Level 1 (40 points)

    GadgetJohn wrote:

     

    Good tip regarding the X. Thank you!

     

    Glad to help, I remember first time I deleted something I freaked out... then I found the "Restore Hidden Purchases" option in the account settings and it came back. Heh.

  • 131. Re: TV episdodes for purchased seasons have stopped downloading. Check for Available Downloads is broken.
    jramirez1918 Level 1 Level 1 (0 points)

    Yup, the emails are useless, the link doesn't work.  I have to manually find the shows I want to download and download them myself.  What a pain in the neck.  Too bad Apple doesn't care.

  • 132. Re: TV episdodes for purchased seasons have stopped downloading. Check for Available Downloads is broken.
    davidsignal Level 3 Level 3 (525 points)

    Well, I think that more people would be complaining if this was a major issue for all users who download tv season passess from iTunes.  It is evident that most users don't use iTunes in this exact manner and we are a minority.  But, hopefully it is a precursor to better software in iTunes, OSX 10.9, iOS 7.

  • 133. Re: TV episdodes for purchased seasons have stopped downloading. Check for Available Downloads is broken.
    AbsolutGrndZer0 Level 1 Level 1 (40 points)

    davidsignal wrote:

     

    Well, I think that more people would be complaining if this was a major issue for all users who download tv season passess from iTunes.  It is evident that most users don't use iTunes in this exact manner and we are a minority.  But, hopefully it is a precursor to better software in iTunes, OSX 10.9, iOS 7.

     

    Well, not everybody posts here. We dont' know how many emails that Apple has gotten about this, however.  I just don't see how anywhere near a majority would prefer to have to go into purchased to download their shows, rather than have them automatically download.  IF there was complaints (which I doubt), then a better idea would be to make it an option in the iTunes "Auto-downloads on/off" so like if you turn it off, then when it checks on opening (where it also is checking for many things, like new genius data, etc), it clears the queue without downloading anything, if it's on it downloads stuff.

     

    Plus, sometimes for like a day or two at most my card doesn't work, depending on when iTunes does their charges (because it's a prepaid and so sometimes near the end of the week before payday I forget and go get a hamburger, dropping it just below what iTunes is owed because small charges don't go through right away).  Before, the auto-downloads worked, I just couldn't download anything from the past purchases until my card was working again.  This new thing I wont' be able to probably.  I'll have to wait until my card is working again for everything.  Hey maybe that's a reason they are doing this.  So no mistakes, if you owe them even a dollar, you can't download ANYTHING even if it's previously purchased.

     

    Message was edited by: AbsolutGrndZer0

  • 134. Re: TV episdodes for purchased seasons have stopped downloading. Check for Available Downloads is broken.
    davidsignal Level 3 Level 3 (525 points)

    There are some hundreds of millions of people that use iTunes.  If this was a major issue that was affecting millions of people, there would be more people bringing it up here.

     

    It is definately not as easy.  I have managed to make the links work for my own purposes, but the only real reason that I can think of to make it more difficult to download TV Seasons is to promote a different method.   It would be nice to have immediate availability of all purchased iTunes items on any device without ever storing it on a local hard drive.  I don't think that we are ready for that yet though.  Many devices do not connect to the internet.  Or possibly, the ability to check for downloads such as TV Seasons will be automatic and built-in to the new OSX, or Apple will announce a new iTunes at WWDC.  There is too much new software coming out very soon to say that this isn't a pre-emptive change to aid a smooth adoption of newer and better methods.