Comments (6)
The default template "spotnet/viewpost.html" should contain the image if it's available. Is it missing for all posts or posts that have an image using other spotnet clients?
from django-spotnet.
There are two ways of adding an image when adding a spot.
1- Input a link to the image. This is currently working in Django-spotnet.
Spot with image (http link):
message-ID: [email protected]
Date: 16 Nov 2012 16:01:37 GMT
Image: <Image>http://www.xx/xx/xx.jpg</Image>
Used by older spotclients and newer clients who didn't changed this specific option.
2- uploading the image to usenet. This is currently not working in Django-spotnet.
Spot without image (segment):
message-ID: [email protected]
Date: 29 Nov 2012 23:47:18 GMT
Image: <Image Width='600' Height='425'><Segment>[email protected]</Segment></Image>
Used by newer spotclients.
from django-spotnet.
I wasn't aware of that second method, it should definitely be included!
from django-spotnet.
This second method is now supported with the latest commit (bitbucket 89f8802ebb55cc0e1cab0931ffb5fc5701e08e56). It does require renaming the spotnet_post.image
column to image_url
and adding a image_segments
column (see manage.py sqlall spotnet
), and re-updating your database to get the correct image for already stored posts.
from django-spotnet.
Btw, you can now overwrite existing posts when updating using the --overwrite / -w flag.
from django-spotnet.
Thanks for adding and the information about changing the database.
Thought that manage.py syncdb
would update the settings of the database.
I have used manage.py sqlall spotnet
to list the database layout and manual changed the mysql database.
Spots with image retrieved from usenet are working.
The -w switch works.
from django-spotnet.
Related Issues (12)
- Keep full title for NZB name if title contains space HOT 3
- Skipped spots because of invalid xml data HOT 5
- NZB can't be retrieved if the NZB is split into multiple segments (because of error in header)
- search currently not working HOT 2
- BBCode support
- Header not compatible with spotnet listed as spot
- Use XOver instead of HEAD/Article
- NZB with errors
- update_spotnet error "Post does not have a From header"
- update_spotnet error "Probably not a spotnet post"
- update_spotnet error "Incorrect string value"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-spotnet.