{"id":22116059,"url":"https://github.com/halfenif/toy_filemover_streamlit","last_synced_at":"2025-07-25T09:32:22.829Z","repository":{"id":239683468,"uuid":"800229434","full_name":"halfenif/toy_filemover_streamlit","owner":"halfenif","description":"Sometimes the process of editing MP3 tags is the result of an old man's work.","archived":false,"fork":false,"pushed_at":"2024-08-17T07:21:06.000Z","size":193,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-17T08:24:38.908Z","etag":null,"topics":["fastapi","mp3-tags","mpd","streamlit"],"latest_commit_sha":null,"homepage":"https://filemover.enif.page/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/halfenif.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-14T00:09:11.000Z","updated_at":"2024-08-17T07:21:10.000Z","dependencies_parsed_at":"2024-05-14T02:42:03.862Z","dependency_job_id":"9892f59d-961d-450b-96f0-0abc3206dd29","html_url":"https://github.com/halfenif/toy_filemover_streamlit","commit_stats":null,"previous_names":["halfenif/toy_filemover_streamlit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halfenif%2Ftoy_filemover_streamlit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halfenif%2Ftoy_filemover_streamlit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halfenif%2Ftoy_filemover_streamlit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halfenif%2Ftoy_filemover_streamlit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/halfenif","download_url":"https://codeload.github.com/halfenif/toy_filemover_streamlit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227555250,"owners_count":17786152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fastapi","mp3-tags","mpd","streamlit"],"created_at":"2024-12-01T12:18:59.138Z","updated_at":"2024-12-01T12:18:59.777Z","avatar_url":"https://github.com/halfenif.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Filemover for Home (MP3 Tag Manager)\n\n![Demo](doc/Screen01.png)\n\n## Demo\n[https://filemover.enif.page](https://filemover.enif.page)\n\n## Feature\n- 2 Folder concept: SOURCE \u0026 TARGET Folder\n- Folder action: rename, add sub, delete, upload file\n- 3 Type format support: mp3, flac, ogg\n- File action: tag edit, move folder(SOURCE vs. TARGET), file delete\n- MPD update(multi)\n\n## Installation\n**Requirements**\n- Docker, Docker-Compose or Podman\n\n### Clone\n```bash\ngit clone https://github.com/halfenif/toy_filemover_streamlit.git\n```\n\n## Change Config\n```bash\ncp ./.env.sample ./.env\ncp ./fastapi/.env.sample ./fastapi/.env\ncp ./streamlit/.env.sample ./streamlit/.env\n```\n\n### Edit .env\n\n**./.env**  \n- FOLDER_SOURCE=\"\"  # Your MP3 file input folder like Youtube-DL\n- FOLDER_TARGET=\"\"  # MPD music folder\n\n1. Don't use symbolic link\n2. Docker run user is root\n3. Podman run user is login user\n4. Be carefull folder and file permission\n\n\n**fastapi/.env**\n- ENV_TYPE = \".env.sample\" \u003e \".env\" Display Information\n- IS_DEBUG = bool\n- MPD_SERVER_LIST = str(json format). Option. \n- UI_OPTION_SHORT_FILE_NAME = bool. Display button label short or not\n- UI_OPTION_SHORT_FILE_LENGTH = int. Display button label char count\n- FILE_OPTION_UPLOAD_LIMIT_MB = int. Use .env insted of streamlit/.streamlit/config.toml\n\n**streamlit/.env**\n- ENV_TYPE = \".env.sample\" \u003e \".env\" Display Information\n- URL_BACKEND = fastAPI container URL\n- UI_OPTION_TITLE = str, st.title(), if \"\" is None\n- UI_OPTION_DESC = str, st.write(), if \"\" is None\n- UI_OPTION_LINK_TITLE = str, st.write(), if \"\" is None\n- UI_OPTION_LINK_URL = str, st.write(), if \"\" is None\n- UI_OPTION_SIDEBAR_WIDTH = int, st.sidebar width\n- TAG_DATE_BEGIN, TAG_TARCK_END = int tag default value\n- TAG_OPTION_WHIP = bool. Check Box Defualt Value\n- TAG_OPTION_MOVE_SOURCE_TO_TARGET, TAG_OPTION_MOVE_TARGET_TO_SOURCE = bool. Check Box Defualt Value\n- TAG_OPTION_MPD_UPDATE = bool. Check Box Defualt Value\n\n\n### Docker-Compose\n```bash\ndocker-compose build\ndocker-compose up\n```\n\n### Podman\n```bash\n./rebuild_podman.sh\n```\n\n---\n### Below Korean Description\n## 이 녀석을 만들게된 이야기\n\n요즘 세상에 누가 MP3로 음악을 듣겠습니까 마는, 저는 1년에 한 두번 MP3 Tag를 수정 할 일이 생기는 삶을 살고 있습니다.\n\n아주 오래전부터 [MPD](https://www.musicpd.org/)를 사용해서 음악환경을 구축하고 있었기 때문에 음악파일(대부분 MP3)은 NAS의 특정 폴더에 저장되어있고, 다양한 MPD가 cifs로 접근하고 있는 상황입니다.\n\n거의 그럴일은 없지만, 일년에 몇 개의 MP3 File이 신규로 유입(Source Folder)되는 상황이 발생하고, 불행히도 그 파일들은 MPD의 Music Folder(Target Folder)와는 상이한 상황이다 보니.\n\n어디선가 굴러다니고 있을 GUI Tag Editor를 찾아서 Tag를 바꾸고, NAS의 Music Folder에 Copy하고, MPC update명령을 (집사람에게 알려준다고 가능할리가...) 실행하는게 귀찬아서 만들게되었습니다.\n\n이 녀석을 [Home Assistant](https://www.home-assistant.io/) lovelace에 설정하고 친절(?)하게 알려준다면, 사용자가 스스로 MP3 Tag를 정리 할 수 있지 않을까요? (누구나 희망을 가지고 있다. 아마도.)\n\n### 생각해볼만한 기술적 사항들\n- streamlit은 진정 간편하게 UI(Front)를 구성할 수 있지만. 그것이 가지는 설계사상에 순응하며 구현 할 생각을 해야 속편하다 생각됩니다.\n- File upload, delete, Folder Add, Rename, Delete, Move가 필요하다고 생각하지만. File은 고민좀 해보고, Folder는 적절한 UI가 생각나지 않습니다.\n- logging은 구현하면서보니 아직까지 필요하지는 않았습니다.\n- Exception처리는 화면에 표출하는게 좋겠다 싶어 Result Class를 반환하는 방식을 사용합니다.\n- 파일경로를 Base64로 인코딩하는 이유는 (습관적인 것이니 괘념치 마시지 바랍니다.)\n\n---\n아직은 알파버전이이지만, 사용자 테스트를 진행하고 (필요하다면)업데이트 하도록 하겠습니다.\n2024.05.14. By HalfEnif","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalfenif%2Ftoy_filemover_streamlit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhalfenif%2Ftoy_filemover_streamlit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalfenif%2Ftoy_filemover_streamlit/lists"}