Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

TV episdodes for purchased seasons have stopped downloading. Check for Available Downloads is broken.

Usually, I have an applescript that runs from the mail client to automatically check for available purchases whenever an email from apple is received stating that new episodes are available to download.


In the last week, this has stopped working, so I have been attempting it manually, but when I go to Store-->Check for Available Downloads... I get the message that All purchases have been downloaded for this AppleID...


I can also click the link in the email that says there are new episodes for my purchased season, but this does not download the new episodes.


I have had this issue this week with updates for 2 different TV seasons.


Obviously, something is broken.


I know that I can click on the store menu, click on the purchased link, click on the tv season, click on the option for not already on this computer, click on the tv season with new episodes, click on the download button for the new episodes to download...... but I don't want to do all of that.


If anyone has a way to restore the functionality of "Check for Available Downloads..." for purchased TV seasons, I would appreciate a response here.


Posted on Mar 25, 2013 10:37 AM

Reply
159 replies

May 11, 2013 3:27 AM in response to J. Tuttle

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 messagestheMessages

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 textstartPos 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 textendPos 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 errStrnumbererrNum

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 errStrnumbererrNum

end try

set AppleScript's text item delimiters to saveDelim

return (theText)

end ListToText


on openWeb(pageAddress)

tell application "Safari"


open locationpageAddress

end tell

end openWeb


on iTunesDL()


activateapplication "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


keystrokereturn

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

May 13, 2013 2:19 AM in response to davidsignal

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.

May 13, 2013 4:34 AM in response to John Whiteside

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.

May 13, 2013 5:07 AM in response to davidsignal

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....

May 13, 2013 9:50 AM in response to GadgetJohn

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.

May 18, 2013 1:09 AM in response to davidsignal

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

May 18, 2013 2:35 AM in response to AbsolutGrndZer0

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.

May 18, 2013 6:55 AM in response to davidsignal

They could build it into the new OSX, but that wouldnt help me. I know this thread is under "iTunes for Mac" but I'm actually a PC user, reason I'm posting in this thread is because this issue affects BOTH Mac and PC users...


Plus, there are a lot of other threads about this, a lot of people make their own, or they dont bother asking others for help since WE can fix the automatic downloads, only Apple can.


I seriously doubt that even if the majority didn't like it, they wouldn't come here to discuss it, they'd just be emailing Apple, you know? So we really have no way to know if we are the only ones who hate it, but I really doubt we are. We're just the few that care about it enough to discuss it here.

TV episdodes for purchased seasons have stopped downloading. Check for Available Downloads is broken.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.