mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-24 17:33:20 +03:00
Compare commits
3 Commits
4.3.2-rele
...
subscripti
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cfb08a32fe | ||
|
|
b20586f892 | ||
|
|
6eadb37532 |
@@ -1945,6 +1945,10 @@ app.post('/api/auth/register', optionalJwt, async (req, res) => {
|
|||||||
res.sendStatus(409);
|
res.sendStatus(409);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!userid || !username) {
|
||||||
|
logger.error(`Registration failed for user ${userid}. Username or userid is invalid.`);
|
||||||
|
}
|
||||||
|
|
||||||
const new_user = await auth_api.registerUser(userid, username, plaintextPassword);
|
const new_user = await auth_api.registerUser(userid, username, plaintextPassword);
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ exports.subscribe = async (sub, user_uid = null, skip_get_info = false) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sub['user_uid'] = user_uid ? user_uid : undefined;
|
sub['user_uid'] = user_uid ? user_uid : undefined;
|
||||||
await db_api.insertRecordIntoTable('subscriptions', sub);
|
await db_api.insertRecordIntoTable('subscriptions', JSON.parse(JSON.stringify(sub)));
|
||||||
|
|
||||||
let success = skip_get_info ? true : await getSubscriptionInfo(sub);
|
let success = skip_get_info ? true : await getSubscriptionInfo(sub);
|
||||||
exports.writeSubscriptionMetadata(sub);
|
exports.writeSubscriptionMetadata(sub);
|
||||||
@@ -491,6 +491,8 @@ exports.writeSubscriptionMetadata = (sub) => {
|
|||||||
: config_api.getConfigItem('ytdl_subscriptions_base_path');
|
: config_api.getConfigItem('ytdl_subscriptions_base_path');
|
||||||
const appendedBasePath = getAppendedBasePath(sub, basePath);
|
const appendedBasePath = getAppendedBasePath(sub, basePath);
|
||||||
const metadata_path = path.join(appendedBasePath, CONSTS.SUBSCRIPTION_BACKUP_PATH);
|
const metadata_path = path.join(appendedBasePath, CONSTS.SUBSCRIPTION_BACKUP_PATH);
|
||||||
|
|
||||||
|
fs.ensureDirSync(appendedBasePath);
|
||||||
fs.writeJSONSync(metadata_path, sub);
|
fs.writeJSONSync(metadata_path, sub);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -21,4 +21,4 @@ version: 0.1.0
|
|||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||||
# It is recommended to use it with quotes.
|
# It is recommended to use it with quotes.
|
||||||
appVersion: "4.3.1"
|
appVersion: "4.3.2"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "youtube-dl-material",
|
"name": "youtube-dl-material",
|
||||||
"version": "4.3.1",
|
"version": "4.3.2",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"ng": "ng",
|
"ng": "ng",
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
export const CURRENT_VERSION = 'v4.3.1';
|
export const CURRENT_VERSION = 'v4.3.2';
|
||||||
|
|||||||
Reference in New Issue
Block a user