diff options
author | ByteHamster <info@bytehamster.com> | 2020-04-05 14:58:02 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2020-04-05 15:57:30 +0200 |
commit | a8eb3d6209b9e4f1709c7ed142708f07d322d45e (patch) | |
tree | 2382dffe8f2cbf329b6e06f7f27ed2d6a16d1493 /core/src/main/java | |
parent | 77efea895af62f71a02dad668b10a405b2d4c6b2 (diff) | |
download | AntennaPod-a8eb3d6209b9e4f1709c7ed142708f07d322d45e.zip |
Use consistent user agent
Diffstat (limited to 'core/src/main/java')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/service/playback/ExoPlayerWrapper.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/playback/ExoPlayerWrapper.java b/core/src/main/java/de/danoeh/antennapod/core/service/playback/ExoPlayerWrapper.java index 42a193f0e..dddf442f3 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/service/playback/ExoPlayerWrapper.java +++ b/core/src/main/java/de/danoeh/antennapod/core/service/playback/ExoPlayerWrapper.java @@ -29,7 +29,7 @@ import com.google.android.exoplayer2.upstream.DataSource; import com.google.android.exoplayer2.upstream.DefaultDataSourceFactory; import com.google.android.exoplayer2.upstream.DefaultHttpDataSource; import com.google.android.exoplayer2.upstream.DefaultHttpDataSourceFactory; -import com.google.android.exoplayer2.util.Util; +import de.danoeh.antennapod.core.ClientConfig; import de.danoeh.antennapod.core.preferences.UserPreferences; import de.danoeh.antennapod.core.util.playback.IPlayer; import io.reactivex.Observable; @@ -187,7 +187,7 @@ public class ExoPlayerWrapper implements IPlayer { public void setDataSource(String s) throws IllegalArgumentException, IllegalStateException { Log.d(TAG, "setDataSource: " + s); DefaultHttpDataSourceFactory httpDataSourceFactory = new DefaultHttpDataSourceFactory( - Util.getUserAgent(context, context.getPackageName()), null, + ClientConfig.USER_AGENT, null, DefaultHttpDataSource.DEFAULT_CONNECT_TIMEOUT_MILLIS, DefaultHttpDataSource.DEFAULT_READ_TIMEOUT_MILLIS, true); |