GithubHelp home page GithubHelp logo

psych0d0g / miui_market_mirror Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 1.0 552 KB

Scripts and tools to create a local mirror of the miui theme market

License: Other

Perl 86.43% Shell 1.51% PHP 12.06%

miui_market_mirror's Introduction

miui_market_mirror

Scripts and tools to create a local mirror of the miui theme market

  • i had this idea after discovering that most of the time the downloads from the official theme market are taking ages to complete due to the fact that the source server is located in china (talking about ~20KB/s) so i created a project to code scripts and tools which can be used to host a local mirror of the official miui market (themes only) in your area. my test-server is located in europe / germany with a 100MBit dedicated connection.

This project is still under heavy development and far from complete. if you want to help just fork it and drop me pull requests.

  • TODO:

  • extend the import scripts to also download the real resources and theme files

  • write php scripts to implement the basic functionality of json requests needed by the miui theme app

  • Perl modules required for the scripts:

  • LWP::UserAgent

  • JSON

  • DBI

  • Config::Tiny

  • File::Basename

  • INFO:

URL's used in the unmodifyed miui-framework.jar which get patched to own server:

"http://market.xiaomi.com/thm/config/clazz/%s/zh-cn" => lists subcategories for wallpapers and Ringtones "http://market.xiaomi.com/thm/details/%s?" => shows details and ressources of a single item "http://market.xiaomi.com/thm/download/%s?" => direct link to the file, gets rewritten to filename "http://market.xiaomi.com/thm/list?category=%s&sortby=%s&start=%s&count=%s" => list items in a category "http://market.xiaomi.com/thm/search?category=%s&sortby=%s&start=%s&count=%s&keywords=%s" => Needs to be reversed, but should provide a search functionality "http://market.xiaomi.com/thm/checkupdate?fileshash=%s" => Update check? Does nothing for now

If you want to have a chat, or ask further questions, drop by on the project's irc-channel:

irc://irc.freenode.net/miui-mm

Greetings Cronix

miui_market_mirror's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

miui-russian

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.