blob: 36e1e39353e331c7c036fd608d017d4c65bd55e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# ytuh
## (YouTube URL Helper)
A bash script designed to help with handling YouTube URLs
## Usage
By default, the script takes YouTube channel name (without the @) as input and returns the channel ID.
```
$ ytuh jawed
UC4QobU6STFB0P71PMvOGN5A
```
The `-r` (reverse) option reverses this behavior: the user inputs a channel ID and the script prints the corresponding channel name.
```
$ ytuh UC4QobU6STFB0P71PMvOGN5A
jawed
```
The `-f` (feed) option will cause the script to output the RSS feed for the channel provided.
```
$ ytuh -f jawed
https://youtube.com/feeds/videos.xml?channel_id=UC4QobU6STFB0P71PMvOGN5A
```
It should be noted that `-rf` does work as expected, retrieving a feed URL from a channel ID.
While this may seem useless, and it probably is, I saw no reason why I shouldn't make it work on the off-chance that it might improve someone's workflow, somehow.
|