2020-12-02 21:01:30 +01:00
|
|
|
|
Module Subfolder
|
|
|
|
|
Public SubFolder_automatic As String = "[automatic by Series and Season]"
|
|
|
|
|
Public SubFolder_automatic2 As String = "[automatic by Series]"
|
2020-12-12 16:24:08 +01:00
|
|
|
|
Public SubFolder_automatic_old As String = "[automatic: Series/Season]"
|
2020-12-02 21:01:30 +01:00
|
|
|
|
Public SubFolder_Nothing As String = "[ ignore subfolder ]"
|
|
|
|
|
|
|
|
|
|
Public SubFolder_Value As String = "[ ignore subfolder ]"
|
|
|
|
|
|
|
|
|
|
|
2021-04-24 20:51:34 +02:00
|
|
|
|
Public Function UseSubfolder(ByVal Series As String, ByVal Season As String, ByVal Path As String) As String
|
2020-12-08 19:01:35 +01:00
|
|
|
|
Dim newPath As String = Path + "\"
|
2020-12-02 21:01:30 +01:00
|
|
|
|
|
2020-12-12 16:24:08 +01:00
|
|
|
|
If SubFolder_Value = SubFolder_automatic Or SubFolder_Value = SubFolder_automatic_old Then
|
2020-12-02 21:01:30 +01:00
|
|
|
|
|
|
|
|
|
newPath = Path + "\" + Series + "\" + Season + "\"
|
|
|
|
|
|
|
|
|
|
ElseIf SubFolder_Value = SubFolder_automatic2 Then
|
|
|
|
|
|
|
|
|
|
newPath = Path + "\" + Series + "\"
|
|
|
|
|
|
|
|
|
|
ElseIf SubFolder_Value = SubFolder_Nothing Then
|
|
|
|
|
|
2020-12-10 19:18:20 +01:00
|
|
|
|
newPath = Path + "\"
|
2020-12-02 21:01:30 +01:00
|
|
|
|
|
|
|
|
|
Else
|
|
|
|
|
|
|
|
|
|
newPath = Path + "\" + SubFolder_Value + "\"
|
|
|
|
|
|
|
|
|
|
End If
|
2020-12-10 19:18:20 +01:00
|
|
|
|
Debug.WriteLine(newPath)
|
2020-12-02 21:01:30 +01:00
|
|
|
|
|
|
|
|
|
Return newPath.Replace("\\", "\")
|
|
|
|
|
End Function
|
|
|
|
|
|
|
|
|
|
End Module
|