change tagging letter @ -> #

This commit is contained in:
Dooho Yi 2021-09-14 23:12:09 +09:00
parent a2d4a422f5
commit e7b4754cf4
2 changed files with 5 additions and 5 deletions

View file

@ -23,8 +23,8 @@ MIME_TYPE = magic.Magic(mime=True)
ignore = Ignore()
PATTERN_TAG = re.compile(r"(?P<name>.+?)(?P<hashes>\@.+)*\.(?P<ext>.+)")
PATTERN_TAG_FOLDER = re.compile(r"(?P<name>.+?)(?P<hashes>\@.+)\/(?P<file>.+)")
PATTERN_TAG = re.compile(r"(?P<name>.+?)(?P<hashes>\#.+)*\.(?P<ext>.+)")
PATTERN_TAG_FOLDER = re.compile(r"(?P<name>.+?)(?P<hashes>\#.+)\/(?P<file>.+)")
def caption(image):
try:

View file

@ -8,7 +8,7 @@
var fragments = null;
archive_request.onload = function() {
fragments = archive_request.response;
let path = (window.location.pathname).split('/')[1];
let p_frags = findFragments(fragments, 'artist', path);
console.log(p_frags);
@ -20,7 +20,7 @@
let _fullName = p_frags[i].file;
let _name = _fullName.split('.')[0]
let _format = _fullName.split('.')[1]
let _partName = _name.split('@')[0]
let _partName = _name.split('#')[0]
item.innerHTML = (`${_partName}.${_format}`);
document.getElementById("archive_list").appendChild(item)
}
@ -37,4 +37,4 @@ let findFragments = (arr, key, value) => {
const convertIndexToString = (index) => {
return ('0'.repeat(4-index.toString().length))+index.toString();
}
}