Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<en-media/> does not presented in note content on create #30

Open
diachkow opened this issue Jul 8, 2020 · 1 comment
Open

<en-media/> does not presented in note content on create #30

diachkow opened this issue Jul 8, 2020 · 1 comment

Comments

@diachkow
Copy link

diachkow commented Jul 8, 2020

So, I have a next note XML rendered in my application (the telenote_api prefix is just a name of my docker container):

telenote_api | <?xml version="1.0" encoding="UTF-8"?>
telenote_api | <!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd">
telenote_api | <en-note>
telenote_api |     Видеокурс по разработке на Python
telenote_api | 
telenote_api | Прошедшей осенью в московском офисе Яндекса проходила первая Школа бэкенд-разработки по теме промышленной разработки на Python.
telenote_api | 
telenote_api | Теперь эти уроки выложены в открытом доступе и пройти их может каждый. К каждому видео приложены ссылки на примеры и полезные материалы:
telenote_api | 
telenote_api | https://tprg.ru/t4e9
telenote_api | 
telenote_api | #python
telenote_api |     
telenote_api |         <en-media type="image/jpeg"
telenote_api |             hash="6a4152d7c4e4fdfcf1b2b058fb88a05c"/>
telenote_api |     
telenote_api | </en-note>

But when the note is craeted the picture is not presented in it:
image

Am I doint right? Note, that I'm currently using Evernote sandbox (dev) server.

@diachkow
Copy link
Author

diachkow commented Jul 8, 2020

I've also tried to do it manually via python3 shell:

>>> note.content = r'<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd"><en-note><en-media width="640" height="480" type="image/jpeg" hash="f03c1c2d96bc67eda02968c8b5af9008"/></en-note>'
>>> 
>>> 
>>> 
>>> note_store.createNote(note)
Note(guid='93051571-0db3-4fda-a38c-3a41fe9faa2b', title='Image', content='<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd"><en-note><en-media width="640" height="480" type="image/jpeg" hash="f03c1c2d96bc67eda02968c8b5af9008"/></en-note>', contentHash=b'\xd0\xfa\xb4P\xe2\xc0\t\xc3\xa0k\xf3\xf7\xc1\xa9\xdep', contentLength=216, created=1594209967000, updated=1594209967000, deleted=None, active=True, updateSequenceNum=102, notebookGuid='e15ed359-9313-4328-a02a-a1a55e23478a', tagGuids=None, resources=None, attributes=NoteAttributes(subjectDate=None, latitude=None, longitude=None, altitude=None, author=None, source=None, sourceURL=None, sourceApplication=None, shareDate=None, reminderOrder=None, reminderDoneTime=None, reminderTime=None, placeName=None, contentClass=None, applicationData=None, lastEditedBy=None, classifications=None, creatorId=None, lastEditorId=None), tagNames=None)

But still got no result:
image

@diachkow diachkow closed this as completed Jul 8, 2020
@diachkow diachkow reopened this Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant