diff options
| author | RblSb <msrblsb@gmail.com> | 2020-03-04 20:41:43 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2020-03-04 20:41:43 +0300 |
| commit | 6e28381de77265f8b6a24cdd9c583d1d27d8d7b2 (patch) | |
| tree | 4a960040204580999774bfffea23634c19d02c9c /src/VideoList.hx | |
| parent | 4155b95cce55e1176aecb1531b9c06344a2e81b5 (diff) | |
Playlist config limits
Diffstat (limited to 'src/VideoList.hx')
| -rw-r--r-- | src/VideoList.hx | 6 |
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; + } + } |
