]> git.lizzy.rs Git - go-anidb.git/blobdiff - mylist.go
anidb: Implement MYLIST for single files
[go-anidb.git] / mylist.go
index 8f7288cd3d54ebddea3e8a5a6e15a39f047144e9..de3e187b834cd6f7711c97fe4c00f4bb6e3f7a32 100644 (file)
--- a/mylist.go
+++ b/mylist.go
@@ -1,3 +1,55 @@
 package anidb
 
+import (
+       "time"
+)
+
 type LID int64
+
+type MyListState int
+
+const (
+       MyListStateUnknown = MyListState(iota)
+       MyListStateHDD
+       MyListStateCD
+       MyListStateDeleted
+)
+
+type FileState int
+
+const (
+       FileStateOriginal = FileState(iota)
+       FileStateCorrupted
+       FileStateEdited
+
+       FileStateOther = 100
+)
+const (
+       FileStateSelfRip = FileState(10 + iota)
+       FileStateDVD
+       FileStateVHS
+       FileStateTV
+       FileStateTheaters
+       FileStateStreamed
+)
+
+type MyListEntry struct {
+       LID LID
+
+       FID FID
+       EID EID
+       AID AID
+       GID GID
+
+       DateAdded   time.Time
+       DateWatched time.Time
+
+       State       FileState
+       MyListState MyListState
+
+       Storage string
+       Source  string
+       Other   string
+
+       Cached time.Time
+}