copy code, toggle big curl commands

This commit is contained in:
Simon 2023-09-04 08:35:20 +07:00
parent f4f603df98
commit f37129a7bc
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
2 changed files with 47 additions and 46 deletions

View File

@ -12,9 +12,9 @@ A loose collection of advanced debug info, may or may not apply to you, only use
## Reactivate documents ## Reactivate documents
As part of the metadata refresh task, Tube Archivist will mark videos, channels and playlists as deactivated, if they are no longer available on YouTube. For some reasons, that might have deactivated something that shouldn't have, for example if a video got reinstated after a copyright strike on YT. You can reactivate all things in bulk, so the refresh task will check them again and deactivate the ones that are actually not available anymore. As part of the metadata refresh task, Tube Archivist will mark videos, channels and playlists as deactivated, if they are no longer available on YouTube. For some reasons, that might have deactivated something that shouldn't have, for example if a video got reinstated after a copyright strike on YT. You can reactivate all things in bulk, so the refresh task will check them again and deactivate the ones that are actually not available anymore.
Curl commands to run within the TA container. Curl commands to run within the TA container to reactivate documents:
Reactivate all videos: ??? Videos
```bash ```bash
curl -XPOST "$ES_URL/ta_video/_update_by_query?pretty" -u elastic:$ELASTIC_PASSWORD -H "Content-Type: application/json" -d ' curl -XPOST "$ES_URL/ta_video/_update_by_query?pretty" -u elastic:$ELASTIC_PASSWORD -H "Content-Type: application/json" -d '
@ -33,7 +33,7 @@ curl -XPOST "$ES_URL/ta_video/_update_by_query?pretty" -u elastic:$ELASTIC_PASSW
}' }'
``` ```
Reactivate all channels: ??? Channels
```bash ```bash
curl -XPOST "$ES_URL/ta_channel/_update_by_query?pretty" -u elastic:$ELASTIC_PASSWORD -H "Content-Type: application/json" -d ' curl -XPOST "$ES_URL/ta_channel/_update_by_query?pretty" -u elastic:$ELASTIC_PASSWORD -H "Content-Type: application/json" -d '
@ -52,7 +52,7 @@ curl -XPOST "$ES_URL/ta_channel/_update_by_query?pretty" -u elastic:$ELASTIC_PAS
}' }'
``` ```
Reactivate all playlists: ??? Playlists
```bash ```bash
curl -XPOST "$ES_URL/ta_video/_update_by_query?pretty" -u elastic:$ELASTIC_PASSWORD -H "Content-Type: application/json" -d ' curl -XPOST "$ES_URL/ta_video/_update_by_query?pretty" -u elastic:$ELASTIC_PASSWORD -H "Content-Type: application/json" -d '

View File

@ -59,6 +59,7 @@ theme:
scheme: tubearchivist scheme: tubearchivist
features: features:
- navigation.footer - navigation.footer
- content.code.copy
extra_css: extra_css:
- stylesheets/style.css - stylesheets/style.css
extra: extra: