Fixed feed URL, I hope

CQTexperiment
Chris Moeller 2014-09-05 23:25:32 -07:00
parent 7f083607a1
commit f2e0be8c9e
3 changed files with 6 additions and 4 deletions

View File

@ -478,8 +478,9 @@ increase/decrease as long as the user holds the left/right, plus/minus button */
[userDefaultsValuesDict setObject:[NSNumber numberWithBool:YES] forKey:@"remoteEnabled"];
[userDefaultsValuesDict setObject:[NSNumber numberWithBool:YES] forKey:@"remoteOnlyOnActive"];
NSString * feedURLdefault = @"https://kode54.net/cog/mercury.xml";
NSString * feedURLdefault = @"https://www.kode54.net/cog/mercury.xml";
NSString * feedURLbroken = @"https://kode54.net/cog/stable.xml";
NSString * feedURLbroken2 = @"https://kode54.net/cog/mercury.xml";
[userDefaultsValuesDict setObject:feedURLdefault forKey:@"SUFeedURL"];
@ -499,7 +500,8 @@ increase/decrease as long as the user holds the left/right, plus/minus button */
[[NSUserDefaults standardUserDefaults] synchronize];
//And if the existing feed URL is broken due to my ineptitude with the above defaults, fix it
if ([[[NSUserDefaults standardUserDefaults] stringForKey:@"SUFeedURL"] isEqualToString:feedURLbroken])
if ([[[NSUserDefaults standardUserDefaults] stringForKey:@"SUFeedURL"] isEqualToString:feedURLbroken] ||
[[[NSUserDefaults standardUserDefaults] stringForKey:@"SUFeedURL"] isEqualToString:feedURLbroken2])
[[NSUserDefaults standardUserDefaults] setValue:feedURLdefault forKey:@"SUFeedURL"];
//Add observers

View File

@ -1027,6 +1027,6 @@
<key>NSPrincipalClass</key>
<string>MediaKeysApplication</string>
<key>SUFeedURL</key>
<string>https://kode54.net/cog/mercury.xml</string>
<string>https://www.kode54.net/cog/mercury.xml</string>
</dict>
</plist>

View File

@ -29,7 +29,7 @@
[self addObject:
[NSDictionary dictionaryWithObjectsAndKeys:
NSLocalizedStringFromTableInBundle(@"kode54.net wheneverly", nil, [NSBundle bundleForClass:[self class]], @"") , @"name", @"http://kode54.net/cog/mercury.xml", @"url",nil]];
NSLocalizedStringFromTableInBundle(@"kode54.net wheneverly", nil, [NSBundle bundleForClass:[self class]], @"") , @"name", @"https://www.kode54.net/cog/mercury.xml", @"url",nil]];
}
@end