Skip to content

Commit 6ca7123

Browse files
committed
Add comment for usage of YoutubeParsingHelper.resetClientVersionAndKey
1 parent 4af50c6 commit 6ca7123

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeParsingHelper.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,11 @@ public static String getKey() throws IOException, ExtractionException {
353353
return key;
354354
}
355355

356+
/**
357+
* Only use in tests.
358+
*
359+
* Quick-and-dirty solution to reset global state in between test classes.
360+
*/
356361
static void resetClientVersionAndKey() {
357362
clientVersion = null;
358363
key = null;

0 commit comments

Comments
 (0)