-
Notifications
You must be signed in to change notification settings - Fork 1
/
Structure.txt
92 lines (69 loc) · 3.04 KB
/
Structure.txt
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
Structure:
languagepod101
Lesson Level
Season
Lesson
Example:
japanesepod101
├─ Absolute Beginner
│ ├─ Season 1
│ │ ├─ lesson 01
│ │ │ ├─ part I
│ │ │ ├─ part II
│ │ │ ├─ Video
│ │ │ ├─ Audio
│ │ │ ├─ Lesson Notes
│ │ ├─ lesson 02
│ │ ├─ lesson 03
│ │ │ ├─ Video
│ │ │ ├─ Lesson Notes
│ │ ├─ ...
│ ├─ Season 2
│ │ ├─ lesson 01
│ │ ├─ lesson 02
│ │ │ ├─ Video
│ │ ├─ lesson 03
│ │ ├─
│ ...
│ ...
│
...
Explanation:
Terminology:
"-" - A string containing Roman numerals
"_" - A number
There are four strings or names which compose an entry's title which are hierarchically structured: Level, Season, Lesson, Part.
Let's take this entry: 'Absolute Beginner Season 1 S1 #12 - Can You Eat This Japanese Meatloaf? - Dialog'
Level name is the string before " S_", " Season _", ": ", or any number " _".
In this case, Level name is be 'Absolute Beginner'
Season name can be " S_", " S_ _", "Season _", and " _". or string beginning from ": " until " - ".
Season name comes after Level name.
In this case, Season name is be '1'
Lesson name is the string after Level or Season name, beginning from " #_" until a " - " separator.
In this case, Lesson name is be '#12 - Can You Eat This Japanese Meatloaf?'
Part name is the name after Lesson name. It can be either "Part -" or "Part _".
in this case, there is no Part name.
Type name is the name after the last separator (" - "), it can be "Audio", "Video", "Lesson Notes", "Dialog", and more.
Type names contains different content. For example "Lesson Notes" entries will contain a PDF file, while
"Audio" and "Video" entries will contain different media files.
In this case, the Type name is 'Dialog'
If the entry contains more than one type of content, e.g., (PDF, Video and Audio) without a Type name in its title,
we cannot distinguish between the types just by looking at the entry's title.
In that case, each type will get its own directory inside of the entry folder, where the entry's content will be downloaded.
For example:
Absolute Beginner Season 1 S1 #12 - Can You Eat This Japanese Meatloaf?
├─ Audio
├─ Video
├─ PDF / Document
However, if the entry name does contain a Type name, a folder will be created for each Type name.
For example if we have those three entries:
Absolute Beginner Season 1 S1 #12 - Can You Eat This Japanese Meatloaf? - Dialog
Absolute Beginner Season 1 S1 #12 - Can You Eat This Japanese Meatloaf? - Video
Absolute Beginner Season 1 S1 #12 - Can You Eat This Japanese Meatloaf? - Lesson Notes
The final result will be:
Absolute Beginner
├─ Season 1
├─ Lesson #12 - Can You Eat This Japanese Meatloaf?
├─ Dialog
├─ Video
├─ Lesson Notes