mirror of
https://github.com/neosubhamoy/neodlp.git
synced 2026-02-05 06:22:23 +05:30
feat: added custom commands, per-download configs and other minor improvements
This commit is contained in:
@@ -209,6 +209,10 @@ export const formatCodec = (codec: string) => {
|
||||
return codec.toUpperCase();
|
||||
}
|
||||
|
||||
export const generateID = () => {
|
||||
return `${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
|
||||
}
|
||||
|
||||
export const generateDownloadId = (videoId: string, host: string) => {
|
||||
host = host.trim().split('.')[0];
|
||||
return `${host}_${videoId}_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
|
||||
|
||||
Reference in New Issue
Block a user