Video in immich
Sn0wAlice opened this issue · comments
Alice Snow commented
Seems to crash on video
try:
if response.text:
assets = response.json()
st.success('Assets fetched successfully!')
return assets
else:
st.error('Received an empty response.')
return None
except requests.exceptions.JSONDecodeError as e:
st.error('Failed to decode JSON from the response.')
st.error(f'Response content: {response.text}')
return None
add an asset filter assets = [asset for asset in assets if asset.get("type") == "IMAGE"]
seems to patch the problem
try:
if response.text:
assets = response.json()
assets = [asset for asset in assets if asset.get("type") == "IMAGE"]
st.success('Assets fetched successfully!')
return assets
else:
st.error('Received an empty response.')
return None
except requests.exceptions.JSONDecodeError as e:
st.error('Failed to decode JSON from the response.')
st.error(f'Response content: {response.text}')
return None
Thess commented
Thank you for your feedback! I'm planning to incorporate your suggestion into the project. Additionally, I'm exploring a feature to detect duplicate videos, which I'll be working on in the coming days. To enhance user experience, I'm also considering revising the app using React. Stay tuned for updates!
Alice Snow commented
gl for the react update ^^