mirror of
https://github.com/LuanRT/googlevideo.git
synced 2026-06-13 00:32:11 +00:00
chore: lint
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -10,6 +10,9 @@ yarn-error.log*
|
|||||||
lerna-debug.log*
|
lerna-debug.log*
|
||||||
.pnpm-debug.log*
|
.pnpm-debug.log*
|
||||||
|
|
||||||
|
# WebStorm
|
||||||
|
.idea/
|
||||||
|
|
||||||
# Coverage directory used by tools like istanbul
|
# Coverage directory used by tools like istanbul
|
||||||
coverage
|
coverage
|
||||||
*.lcov
|
*.lcov
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ export class SabrUmpProcessor {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public getSegmentInfo() {
|
public getSegmentInfo(): Segment | undefined {
|
||||||
return this.partialSegments.get(this.desiredHeaderId || 0);
|
return this.partialSegments.get(this.desiredHeaderId || 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,10 @@ export class CacheManager {
|
|||||||
this.startGarbageCollection();
|
this.startGarbageCollection();
|
||||||
}
|
}
|
||||||
|
|
||||||
public getCacheEntries() {
|
public getCacheEntries(): {
|
||||||
|
initSegmentCache: Map<string, CacheEntry>;
|
||||||
|
segmentCache: Map<string, CacheEntry>;
|
||||||
|
} {
|
||||||
return {
|
return {
|
||||||
initSegmentCache: this.initSegmentCache,
|
initSegmentCache: this.initSegmentCache,
|
||||||
segmentCache: this.segmentCache
|
segmentCache: this.segmentCache
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ export function createSegmentCacheKeyFromMetadata(
|
|||||||
* @param format - The SabrFormat object.
|
* @param format - The SabrFormat object.
|
||||||
* @returns A unique string identifier for the format.
|
* @returns A unique string identifier for the format.
|
||||||
*/
|
*/
|
||||||
export function getUniqueFormatId(format: SabrFormat) {
|
export function getUniqueFormatId(format: SabrFormat): string {
|
||||||
if (format.width)
|
if (format.width)
|
||||||
return format.itag.toString();
|
return format.itag.toString();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user