fix photo link
This commit is contained in:
parent
22e2d68e5d
commit
2bf62e2db3
1 changed files with 3 additions and 4 deletions
|
@ -17,7 +17,7 @@ from ..error import Res
|
||||||
from my.config import photos as config
|
from my.config import photos as config
|
||||||
|
|
||||||
|
|
||||||
log = LazyLogger('my.photos')
|
log = LazyLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -46,13 +46,12 @@ class Photo(NamedTuple):
|
||||||
raise RuntimeError(f'Weird path {self.path}, cant match against anything')
|
raise RuntimeError(f'Weird path {self.path}, cant match against anything')
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def linkname(self) -> str:
|
def name(self) -> str:
|
||||||
return self._basename.strip('/')
|
return self._basename.strip('/')
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def url(self) -> str:
|
def url(self) -> str:
|
||||||
PHOTOS_URL = 'TODO FIXME'
|
return f'{config.base_url}{self._basename}'
|
||||||
return PHOTOS_URL + self._basename
|
|
||||||
|
|
||||||
|
|
||||||
from .utils import get_exif_from_file, ExifTags, Exif, dt_from_path, convert_ref
|
from .utils import get_exif_from_file, ExifTags, Exif, dt_from_path, convert_ref
|
||||||
|
|
Loading…
Add table
Reference in a new issue