1
# Copyright 2004-2005 Joe Wreschnig, Michael Urman
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License version 2 as
5
# published by the Free Software Foundation
7
# $Id: remote.py 3634 2006-07-14 19:38:41Z piman $
9
from formats._audio import AudioFile
10
from util.uri import URI
14
class RemoteFile(AudioFile):
18
format = "Remote File"
20
def __init__(self, uri):
21
self["~uri"] = self["~filename"] = str(URI(uri))
22
self["~mountpoint"] = ""
25
def rename(self, newname): pass
26
def reload(self): pass
27
def exists(self): return True
28
def valid(self): return True
29
def mounted(self): return True
32
raise TypeError("RemoteFiles do not support writing!")
34
def can_change(self, k = None):
35
if k is None: return []
38
key = property(lambda self: self["~uri"])