-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathChannelProcesses.java
59 lines (46 loc) · 1.61 KB
/
ChannelProcesses.java
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
/*
* File: ChannelProcesses.java
* Package: youtube.channel.process
* Author: Zachary Gill
* Repo: https://github.com/ZGorlock/YoutubeDownloader
*/
package youtube.channel.process;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import youtube.entity.Channel;
import youtube.entity.Video;
/**
* Defines custom processes that operate on Channels during execution.
*/
@SuppressWarnings({"SpellCheckingInspection", "DuplicateBranchesInSwitch", "StatementWithEmptyBody", "RedundantSuppression"})
public class ChannelProcesses {
//Logger
/**
* The logger.
*/
private static final Logger logger = LoggerFactory.getLogger(ChannelProcesses.class);
//Static Methods
/**
* Performs special checks specific to a Channel before producing the download queue.<br/>
* Typically used for renaming Videos in the Video map.
*
* @param channel The Channel.
* @param videoMap The Video map.
*/
public static void performSpecialPreConditions(Channel channel, Map<String, Video> videoMap) {
switch (channel.getConfig().getKey()) {
}
}
/**
* Performs special checks specific to a Channel after producing the queue.<br/>
* Typically used for filtering; Do not use this to rename Videos in the Video map.
*
* @param channel The Channel.
* @param videoMap The Video map.
*/
public static void performSpecialPostConditions(Channel channel, Map<String, Video> videoMap) {
switch (channel.getConfig().getKey()) {
}
}
}