aboutsummaryrefslogtreecommitdiffstats
path: root/src/VideoList.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2020-03-04 20:41:43 +0300
committerRblSb <msrblsb@gmail.com>2020-03-04 20:41:43 +0300
commit6e28381de77265f8b6a24cdd9c583d1d27d8d7b2 (patch)
tree4a960040204580999774bfffea23634c19d02c9c /src/VideoList.hx
parent4155b95cce55e1176aecb1531b9c06344a2e81b5 (diff)
Playlist config limits
Diffstat (limited to 'src/VideoList.hx')
-rw-r--r--src/VideoList.hx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/VideoList.hx b/src/VideoList.hx
index 2f13b6c..e2d88d5 100644
--- a/src/VideoList.hx
+++ b/src/VideoList.hx
@@ -64,4 +64,10 @@ abstract VideoList(Array<VideoItem>) from Array<VideoItem> to Array<VideoItem> {
return itemPos;
}
+ public function itemsByUser(client:Client):Int {
+ var i = 0;
+ for (item in this) if (item.author == client.name) i++;
+ return i;
+ }
+
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage