Skip to content

Commit

Permalink
Use a current Chrome version in our User-Agent header
Browse files Browse the repository at this point in the history
  • Loading branch information
jakshin committed Jan 3, 2024
1 parent 5d178b6 commit 0a94e79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/mixcaster-settings.properties
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ subscribed_to =

# The User-Agent header with which to send HTTP requests to mixcloud.com.
# The default is for Chrome on macOS.
user_agent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36
user_agent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

# How often to check watched users/playlists, and begin downloading any new music found.
# It's most useful if you check watches more often than your podcast client checks for new episodes.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/jakshin/mixcaster/utils/AppSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ private static Properties loadSettings() throws IOException {
defaults.setProperty("remove_stale_music_files_after_days", "0"); // int >= 0, 0 means disabled
defaults.setProperty("subscribed_to", ""); // whitespace-delimited list of usernames, empty is OK
defaults.setProperty("user_agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)" +
" AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36");
" AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36");
defaults.setProperty("watch_interval_minutes", "20"); // minutes, must be an int > 0
}

Expand Down

0 comments on commit 0a94e79

Please sign in to comment.