Skip to content

Commit

Permalink
Revert iTunes/App Store Categories to http
Browse files Browse the repository at this point in the history
  • Loading branch information
zzanehip committed Jun 12, 2021
1 parent a2bfef7 commit e142a62
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions OldOS/OldOS/AppStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ struct app_store_categories: View {
}

func fetch_first_image_for_category(id: String, completion: @escaping (URL) -> Void) {
let paid_url = URL(string: "https://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/toppaidapplications/sf=143441/genre=\(id)/xml")!
let paid_url = URL(string: "http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/toppaidapplications/sf=143441/genre=\(id)/xml")!
let paid_parser = FeedParser(URL: paid_url)
paid_parser.parseAsync(queue: DispatchQueue.global(qos: .userInitiated)) { (result) in
DispatchQueue.main.async {
Expand Down Expand Up @@ -531,7 +531,7 @@ struct category_destination: View {
DispatchQueue.main.async {
//Top Free
let id = selected_category.genre_id
let free_url = URL(string: "https://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/topfreeapplications/sf=143441/limit=25/genre=\(id)/xml")!
let free_url = URL(string: "http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/topfreeapplications/sf=143441/limit=25/genre=\(id)/xml")!
let free_parser = FeedParser(URL: free_url)
free_parser.parseAsync(queue: DispatchQueue.global(qos: .userInitiated)) { (result) in
DispatchQueue.main.async {
Expand All @@ -552,7 +552,7 @@ struct category_destination: View {
}
}
//Top Paid
let paid_url = URL(string: "https://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/toppaidapplications/sf=143441/limit=25/genre=\(id)/xml")!
let paid_url = URL(string: "http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/toppaidapplications/sf=143441/limit=25/genre=\(id)/xml")!
let paid_parser = FeedParser(URL: paid_url)
paid_parser.parseAsync(queue: DispatchQueue.global(qos: .userInitiated)) { (result) in
DispatchQueue.main.async {
Expand All @@ -574,7 +574,7 @@ struct category_destination: View {
}
}
//Most Recent
let new_url = URL(string: "https://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/newapplications/sf=143441/limit=25/genre=\(id)/xml")!
let new_url = URL(string: "http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/newapplications/sf=143441/limit=25/genre=\(id)/xml")!
let new_parser = FeedParser(URL: new_url)
new_parser.parseAsync(queue: DispatchQueue.global(qos: .userInitiated)) { (result) in
DispatchQueue.main.async {
Expand Down
6 changes: 3 additions & 3 deletions OldOS/OldOS/iTunes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ struct itunes_category_destination_view: View {
}.padding([.top, .bottom], 12).onAppear() {
//Top Songs
let id = selected_category.genre_id
let songs_url = URL(string: "https://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/topsongs/sf=143441/genre=\(id)/xml")!
let songs_url = URL(string: "http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/topsongs/sf=143441/genre=\(id)/xml")!
let songs_parser = FeedParser(URL: songs_url)
songs_parser.parseAsync(queue: DispatchQueue.global(qos: .userInitiated)) { (result) in
DispatchQueue.main.async {
Expand All @@ -385,7 +385,7 @@ struct itunes_category_destination_view: View {
}

//Top Albums
let albums_url = URL(string: "https://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/topalbums/sf=143441/genre=\(id)/xml")!
let albums_url = URL(string: "http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/topalbums/sf=143441/genre=\(id)/xml")!
let albums_parser = FeedParser(URL: albums_url)
albums_parser.parseAsync(queue: DispatchQueue.global(qos: .userInitiated)) { (result) in
DispatchQueue.main.async {
Expand Down Expand Up @@ -1267,7 +1267,7 @@ func fetch_musicvideo_data(_ video: RSSFeedItem, completion: @escaping (Music_Da


func fetch_first_image_for_top_songs_category(id: String, completion: @escaping (URL) -> Void) {
let paid_url = URL(string: "https://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/topalbums/sf=143441/genre=\(id)/xml")!
let paid_url = URL(string: "http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/topalbums/sf=143441/genre=\(id)/xml")!
let paid_parser = FeedParser(URL: paid_url)
paid_parser.parseAsync(queue: DispatchQueue.global(qos: .userInitiated)) { (result) in
DispatchQueue.main.async {
Expand Down

0 comments on commit e142a62

Please sign in to comment.