bitznpcz Posted May 17, 2016 Report Share Posted May 17, 2016 Hi, I'm trying to create a updater for iTunes (x86, x64 & Mac) but it keeps downloading an old version and not the current one. xml attached for x86 version: itunes.xml The Regex ((https[^']*itunessetup.exe)) is picking up the second instance of itunessetup.exe and not the first on: https://swdlp.apple.com/iframes/82/en_us/82_en_us.html it's matching: https://secure-appldnld.apple.com/itunes12/031-34002-20150916-98D32A92-5C11-11E5-80AC-C25A6DA99CB1/iTunesSetup.exe but the first match should be: https://secure-appldnld.apple.com/itunes12/031-62803-20160516-DC22180C-1959-11E6-A359-D4135529DBDF/iTunesSetup.exe Any ideas what I am doing wrong? Thanks Link to comment Share on other sites More sharing options...
shawn Posted May 17, 2016 Report Share Posted May 17, 2016 No idea. I compared yours to mine that uses the same source URL and almost the same pattern. Mine works, yours doesn't. I checked the returned HTML from both: the same. I even replaced your RX pattern with mine in your app profile. It still captures the wrong one. As far as I can tell, there's no reason for it. I would delete it and start again... Then I looked in the source of your XML file. It has a property at line 70 "RegexRightToLeft" with a TRUE value. I unchecked the "RTL" in the "url" variable and re-loaded the page and it parsed correctly. Gotta be careful with that. Link to comment Share on other sites More sharing options...
Guest Kevin Walker Posted May 17, 2016 Report Share Posted May 17, 2016 No idea. I compared yours to mine that uses the same source URL and almost the same pattern. Mine works, yours doesn't. I checked the returned HTML from both: the same. I even replaced your RX pattern with mine in your app profile. It still captures the wrong one. As far as I can tell, there's no reason for it. I would delete it and start again... Then I looked in the source of your XML file. It has a property at line 70 "RegexRightToLeft" with a TRUE value. I unchecked the "RTL" in the "url" variable and re-loaded the page and it parsed correctly. Gotta be careful with that. Thanks Shawn - i'll try that when I get home. Thanks for the fast reply! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now