A music player that connects to your cloud/distributed storage.
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

Don't process sources while offline unless it's ipfs or local webdav

+45 -1
+14 -1
src/Applications/UI/Sources/State.elm
··· 201 201 Return.singleton model 202 202 203 203 toProcess -> 204 - processSpecific toProcess model 204 + if model.isOnline then 205 + processSpecific toProcess model 206 + 207 + else 208 + toProcess 209 + |> List.filter Sources.worksOffline 210 + |> (\s -> 211 + case s of 212 + [] -> 213 + Return.singleton model 214 + 215 + _ -> 216 + processSpecific s model 217 + ) 205 218 206 219 207 220 processSpecific : List Source -> Manager
+31
src/Library/Sources.elm
··· 92 92 setProperId : Int -> Time.Posix -> Source -> Source 93 93 setProperId n time source = 94 94 { source | id = String.fromInt (Time.posixToMillis time) ++ String.fromInt n } 95 + 96 + 97 + worksOffline : Source -> Bool 98 + worksOffline source = 99 + case source.service of 100 + AmazonS3 -> 101 + False 102 + 103 + AzureBlob -> 104 + False 105 + 106 + AzureFile -> 107 + False 108 + 109 + Btfs -> 110 + True 111 + 112 + Dropbox -> 113 + False 114 + 115 + Google -> 116 + False 117 + 118 + Ipfs -> 119 + True 120 + 121 + WebDav -> 122 + source.data 123 + |> Dict.get "url" 124 + |> Maybe.map (\u -> String.contains "localhost" u || String.contains "127.0.0.1" u) 125 + |> Maybe.withDefault False