|
60 | 60 | import org.schabi.newpipe.extractor.stream.AudioTrackType; |
61 | 61 | import org.schabi.newpipe.extractor.utils.JsonUtils; |
62 | 62 | import org.schabi.newpipe.extractor.utils.Parser; |
63 | | -import org.schabi.newpipe.extractor.utils.ProtoBuilder; |
64 | 63 | import org.schabi.newpipe.extractor.utils.RandomStringFromAlphabetGenerator; |
65 | 64 | import org.schabi.newpipe.extractor.utils.Utils; |
66 | 65 |
|
@@ -235,23 +234,6 @@ public static boolean isY2ubeURL(@Nonnull final URL url) { |
235 | 234 | return url.getHost().equalsIgnoreCase("y2u.be"); |
236 | 235 | } |
237 | 236 |
|
238 | | - public static String randomVisitorData(final ContentCountry country) { |
239 | | - final ProtoBuilder pbE2 = new ProtoBuilder(); |
240 | | - pbE2.string(2, ""); |
241 | | - pbE2.varint(4, numberGenerator.nextInt(255) + 1); |
242 | | - |
243 | | - final ProtoBuilder pbE = new ProtoBuilder(); |
244 | | - pbE.string(1, country.getCountryCode()); |
245 | | - pbE.bytes(2, pbE2.toBytes()); |
246 | | - |
247 | | - final ProtoBuilder pb = new ProtoBuilder(); |
248 | | - pb.string(1, RandomStringFromAlphabetGenerator.generate( |
249 | | - CONTENT_PLAYBACK_NONCE_ALPHABET, 11, numberGenerator)); |
250 | | - pb.varint(5, System.currentTimeMillis() / 1000 - numberGenerator.nextInt(600000)); |
251 | | - pb.bytes(6, pbE.toBytes()); |
252 | | - return pb.toUrlencodedBase64(); |
253 | | - } |
254 | | - |
255 | 237 | /** |
256 | 238 | * Parses the duration string of the video expecting ":" or "." as separators |
257 | 239 | * |
|
0 commit comments