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

[Update] script.tag-generator #478

Closed
wellspokenman opened this issue Apr 4, 2017 · 21 comments
Closed

[Update] script.tag-generator #478

wellspokenman opened this issue Apr 4, 2017 · 21 comments

Comments

@wellspokenman
Copy link

wellspokenman commented Apr 4, 2017

Add-on details:

Description of changes:

Added support for Trakt watchlists, corrected some URLs. Dependencies for this functionality included under lib. Tested on ubuntu and windows, Kodi 16 and 17.

Checklist:

  • [ X] My code follows the add-on rules and piracy stance of this project.
  • [ X] I have read the CONTRIBUTING document
  • [ X] Each add-on submission should be a single commit with using the following style: [plugin.video.foo] v1.0.0

Additional information :

  • Submitting your add-on to this specific branch makes it available to any Kodi version equal or higher than the branch name with the applicable Kodi dependencies limits.
  • add-on development wiki page.
  • Kodi pydocs provide information about the Python API
  • PEP8 codingstyle which is considered best practice but not mandatory.
  • This add-on repository has automated code guideline check which could help you improve your coding. You can find the results of these check at Codacy. You can create your own account as well to continuously monitor your python coding before submitting to repo.
  • Development questions can be asked in the add-on development section on the Kodi forum.
@razzeee
Copy link
Member

razzeee commented Apr 4, 2017

The news in your addon.xml should only include the latest change

@wellspokenman
Copy link
Author

The wiki was not explicit about that. See wellspokenman/tag-generator@522e01a

@razzeee
Copy link
Member

razzeee commented Apr 4, 2017

@wellspokenman thanks for letting me know, I just updated the wiki

@wellspokenman
Copy link
Author

wellspokenman commented Apr 4, 2017

Thank you. I've updated the issue with the new commit presenting only the most recent changes in news.

@razzeee
Copy link
Member

razzeee commented Apr 5, 2017

Can you also change "en" here to "en_GB"
https://github.com/wellspokenman/tag-generator/blob/master/addon.xml#L14-L15

@wellspokenman
Copy link
Author

Done. Updated issue with new commit.

@wellspokenman
Copy link
Author

Also, if there's any reading on how to do a proper pull request, I'd appreciate being pointed in the right direction.

@razzeee
Copy link
Member

razzeee commented Apr 11, 2017

Any specific part you're struggling with? Which operation system are you using

@wellspokenman
Copy link
Author

I use windows and linux to interact with the git command line, but I only ever use add/commit/checkout/status/log. I assume that a pull request is a request to pull my code into the master Kodi branch, that offers line by line review/compare for the approver? But I am both unsure of where to find my addon inside the main repo, and unable to use the git website to choose the tag-gen repo to compare against this (seems to be made for comparing different branches within the same repo).

@razzeee
Copy link
Member

razzeee commented Apr 12, 2017

image
Click on fork, then grab the url to your repo should be https://github.com/YOURNAME/repo-scripts.git

Clone it to your local machine (I think you know how), switch to the target branch for your addon, in this case probably krypton as I think this is a new submission. Then just copy a version of your addon into the folder your in. You want delete the .git folder of the addon folder you just copied just in case, then just add everything and commit it with the message [script.tag-generator] 0.0.5. Then you want to push to a new branch with some name you choose, like add-tag-generator for example.

If you've done all that, just come back to the repo here: https://github.com/xbmc/repo-scripts and there should be a very obvious button to create a pull request. Click it, then you'll get a window where you choose the base and the head. The base needs to be xbmc/krypton the head YOURGITHUBNAME/add-tag-generator
Fill in the data and submit it.

@wellspokenman
Copy link
Author

hmmm. Tried a couple of times without luck. I clone, checkout krypton, copy my files, add, commit, then try to push my commit to a new branch, but that's where it breaks.
x@x:~/Downloads/kodi-fork$ git push -u origin "add-tag-generator"
error: src refspec add-tag-generator does not match any.

@razzeee
Copy link
Member

razzeee commented Apr 20, 2017

the origin remote is configured to be this? https://github.com/wellspokenman/repo-scripts

@wellspokenman
Copy link
Author

that did it - thanks very much for teaching me. Added a new remote, checked out new branch and pushed to the new remote. Both firefox and chrome have a panic attack (30% CPU + 4gb ram) when I try to push that new compare button, but I guess I can just leave this issue open and do a PR when I release 0.6.

@wellspokenman
Copy link
Author

Just checking: this is in the queue, right? I know I confused matters by asking about how to do a PR, but I assumed it was still allowed to submit this version via an issue.

@razzeee
Copy link
Member

razzeee commented Apr 27, 2017

Oh, sorry, I thought you would be creating a PR by yourself :)
I will prepare something in the next days.

@razzeee
Copy link
Member

razzeee commented Apr 28, 2017

Would be cool, if you could:

Just add:

    <import addon="script.module.requests" version="2.12.4"/>
    <import addon="script.module.six" version="1.9.0"/>

The others haven't been moved to modules yet, unfortunatly.

@wellspokenman
Copy link
Author

Sorry for the delay, real life did it's thing for a while there. New commit 1be8876 submitted. wellspokenman/tag-generator@1be8876

@wellspokenman
Copy link
Author

Any progress here?

@wellspokenman
Copy link
Author

Did you know that today is our three month anniversary? Seems like only yesterday.

@razzeee
Copy link
Member

razzeee commented Jul 4, 2017

Seems like you still have simplejson and requests included in your addon?
These shouldn't be needed due to the dependencies you set in the previous commit. https://github.com/wellspokenman/tag-generator/tree/master/resources/lib

Edit: Six is also still there

@wellspokenman
Copy link
Author

Those modules are used by Trakt, they need to be available outside of Kodi.

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

3 participants